diff --git a/package.json b/package.json index 66fb77ffd..fe3a29a2f 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "commitAll": "git add . && git commit -m \"build: publish\" && git push && pnpm run commitPro", "commitPro": "cd ./packages/pro/ && git add . && git commit -m \"build: publish\" && git push", "copylogs": "copyfiles \"CHANGELOG.md\" ./docs/guide/changelogs/", - "prepublishOnly1": "pnpm run check && lerna run build ", - "prepublishOnly2": "pnpm run check && pnpm run before-build && lerna run build && pnpm run plugin-doc-gen", + "prepublishOnly1": "pnpm run test:unit && pnpm run check && lerna run build ", + "prepublishOnly2": "pnpm run test:unit && pnpm run check && pnpm run before-build && lerna run build && pnpm run plugin-doc-gen", "before-build": "pnpm run transform-sql && cd ./packages/core/basic && time /t >build.md && git add ./build.md && git commit -m \"build: prepare to build\"", "deploy1": "node --experimental-json-modules ./scripts/deploy.js ", "check": "node --experimental-json-modules ./scripts/publish-check.js", @@ -35,6 +35,7 @@ "docs:dev": "vitepress dev docs", "docs:build": "pnpm run copylogs && vitepress build docs", "docs:preview": "vitepress preview docs", + "test:unit": "pnpm -r --workspace-concurrency=1 run test:unit", "pub": "echo 1", "dev": "pnpm run -r --parallel compile ", "pub_all":"pnpm run -r --parallel pub ", diff --git a/packages/core/acme-client/package.json b/packages/core/acme-client/package.json index 70fe51c27..4eddf5437 100644 --- a/packages/core/acme-client/package.json +++ b/packages/core/acme-client/package.json @@ -52,6 +52,7 @@ "lint-types": "tsd", "prepublishOnly": "npm run build-docs", "test": "mocha -t 60000 \"test/setup.js\" \"test/**/*.spec.js\"", + "test:unit": "echo no unit tests", "pub": "npm publish", "compile": "echo '1'" }, diff --git a/packages/libs/lib-huawei/package.json b/packages/libs/lib-huawei/package.json index 1dfe847ee..f758486af 100644 --- a/packages/libs/lib-huawei/package.json +++ b/packages/libs/lib-huawei/package.json @@ -11,6 +11,7 @@ "build": "npm run before-build && rollup -c ", "dev-build": "npm run build", "preview": "vite preview", + "test:unit": "echo no unit tests", "pub": "npm publish" }, "dependencies": { diff --git a/packages/libs/lib-iframe/package.json b/packages/libs/lib-iframe/package.json index cd1e415d7..27e2c440c 100644 --- a/packages/libs/lib-iframe/package.json +++ b/packages/libs/lib-iframe/package.json @@ -14,6 +14,7 @@ "build3": "rollup -c", "build2": "vue-tsc --noEmit && vite build", "preview": "vite preview", + "test:unit": "echo no unit tests", "pub": "npm publish" }, "dependencies": { diff --git a/packages/libs/lib-jdcloud/package.json b/packages/libs/lib-jdcloud/package.json index 0460bfa1b..d07e27e41 100644 --- a/packages/libs/lib-jdcloud/package.json +++ b/packages/libs/lib-jdcloud/package.json @@ -8,6 +8,7 @@ "scripts": { "build": "rollup -c ", "dev-build": "npm run build", + "test:unit": "echo no unit tests", "pub": "npm publish" }, "author": "", diff --git a/packages/libs/lib-k8s/package.json b/packages/libs/lib-k8s/package.json index 7e878f01c..1cb356bd7 100644 --- a/packages/libs/lib-k8s/package.json +++ b/packages/libs/lib-k8s/package.json @@ -14,6 +14,7 @@ "build3": "rollup -c", "build2": "vue-tsc --noEmit && vite build", "preview": "vite preview", + "test:unit": "echo no unit tests", "pub": "npm publish", "compile": "tsc --skipLibCheck --watch" }, diff --git a/packages/libs/midway-flyway-js/package.json b/packages/libs/midway-flyway-js/package.json index 53a3b9c98..3867f0cbb 100644 --- a/packages/libs/midway-flyway-js/package.json +++ b/packages/libs/midway-flyway-js/package.json @@ -13,6 +13,7 @@ "dev-build": "npm run build", "test": "midway-bin test --ts -V", "test1": "midway-bin test --ts -V -f test/blank.test.ts -t 'hash-check'", + "test:unit": "echo no unit tests", "cov": "midway-bin cov --ts", "prepublish": "npm run build", "pub": "npm publish" diff --git a/packages/plugins/plugin-cert/package.json b/packages/plugins/plugin-cert/package.json index 38ffb2591..c3f8310a5 100644 --- a/packages/plugins/plugin-cert/package.json +++ b/packages/plugins/plugin-cert/package.json @@ -13,6 +13,7 @@ "build3": "rollup -c", "build2": "vue-tsc --noEmit && vite build", "preview": "vite preview", + "test:unit": "echo no unit tests", "pub": "npm publish", "compile": "tsc --skipLibCheck --watch" }, diff --git a/packages/ui/certd-client/package.json b/packages/ui/certd-client/package.json index 068320ffe..c2980ed5f 100644 --- a/packages/ui/certd-client/package.json +++ b/packages/ui/certd-client/package.json @@ -12,7 +12,8 @@ "debug:force": "vite --force --mode debug", "build": "cross-env NODE_OPTIONS=--max-old-space-size=40960 vite build ", "dev-build": "echo 1", - "test:unit": "vitest", + "test:unit": "echo no unit tests", + "test:vue": "vitest run", "serve": "vite preview", "preview": "vite preview", "pretty-quick": "pretty-quick",