From cfdc1126a72a17227d269211e171e19187fae963 Mon Sep 17 00:00:00 2001 From: yihao Date: Mon, 2 Feb 2026 23:55:42 +0800 Subject: [PATCH 1/2] Add setup to pretest script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 19c51c4e26..54cb80b128 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "lint": "eslint . --ext .js,.ts,.vue && npm run csslint", "lintfix": "eslint . --ext .js,.ts,.vue --fix && npm run csslintfix", "setup": "npm ci && npm run clean && lerna run prepare", + "pretest": "npm run setup", "test": "npm run lint && lerna run test --stream", "updatetest": "lerna run updatetest --stream" }, From d37b98fd61f8f77a93b3c2422d576d4c99c453ac Mon Sep 17 00:00:00 2001 From: yihao Date: Thu, 5 Feb 2026 18:26:34 +0800 Subject: [PATCH 2/2] Use npm i npm run setup runs npm ci which takes significantly longer time --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 54cb80b128..1b4b8b3929 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "lint": "eslint . --ext .js,.ts,.vue && npm run csslint", "lintfix": "eslint . --ext .js,.ts,.vue --fix && npm run csslintfix", "setup": "npm ci && npm run clean && lerna run prepare", - "pretest": "npm run setup", + "pretest": "npm i && lerna run prepare", "test": "npm run lint && lerna run test --stream", "updatetest": "lerna run updatetest --stream" },