diff --git a/packages/vant-cli/changelog.md b/packages/vant-cli/changelog.md index 6ff316523..48a42ef51 100644 --- a/packages/vant-cli/changelog.md +++ b/packages/vant-cli/changelog.md @@ -36,6 +36,8 @@ yarn add sass ``` +- 为了避免 Phantom dependency,不再默认依赖 `@vue/test-utils`,使用时需要手动安装 + ### Features - 新增 site.htmlMeta 配置项 diff --git a/packages/vant-cli/package.json b/packages/vant-cli/package.json index f1730b44b..1378f40b4 100644 --- a/packages/vant-cli/package.json +++ b/packages/vant-cli/package.json @@ -55,7 +55,6 @@ "@vitejs/plugin-vue": "^1.9.4", "@vitejs/plugin-vue-jsx": "^1.2.0", "@vue/babel-plugin-jsx": "^1.1.1", - "@vue/test-utils": "2.0.0-rc.14", "autoprefixer": "^10.4.0", "babel-jest": "^27.3.1", "chalk": "^4.1.2", diff --git a/packages/vant/package.json b/packages/vant/package.json index 69b7aa5ba..cb106e727 100644 --- a/packages/vant/package.json +++ b/packages/vant/package.json @@ -53,7 +53,7 @@ }, "devDependencies": { "@vant/area-data": "^1.1.3", - "@vant/cli": "^4.0.0-beta.5", + "@vant/cli": "workspace:*", "@vue/compiler-sfc": "^3.2.20", "@vue/runtime-core": "^3.2.20", "@vue/test-utils": "^2.0.0-rc.16", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8767d7c8b..3a9026a05 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,7 +50,7 @@ importers: packages/vant: specifiers: '@vant/area-data': ^1.1.3 - '@vant/cli': ^4.0.0-beta.5 + '@vant/cli': workspace:* '@vant/icons': ^1.7.1 '@vant/popperjs': ^1.1.0 '@vant/use': ^1.3.3 @@ -97,7 +97,6 @@ importers: '@vitejs/plugin-vue-jsx': ^1.2.0 '@vue/babel-plugin-jsx': ^1.1.1 '@vue/compiler-sfc': ^3.2.20 - '@vue/test-utils': 2.0.0-rc.14 autoprefixer: ^10.4.0 babel-jest: ^27.3.1 chalk: ^4.1.2 @@ -150,7 +149,6 @@ importers: '@vitejs/plugin-vue': 1.9.4_vite@2.6.13 '@vitejs/plugin-vue-jsx': 1.2.0 '@vue/babel-plugin-jsx': 1.1.1_@babel+core@7.16.0 - '@vue/test-utils': 2.0.0-rc.14_vue@3.2.21 autoprefixer: 10.4.0_postcss@8.3.11 babel-jest: 27.3.1_@babel+core@7.16.0 chalk: 4.1.2 @@ -2471,14 +2469,6 @@ packages: resolution: {integrity: sha1-TNgMDmLPZaetqyRJ6GtvDLM6Ews=, tarball: '@vue/shared/download/@vue/shared-3.2.21.tgz'} dev: true - /@vue/test-utils/2.0.0-rc.14_vue@3.2.21: - resolution: {integrity: sha1-naG+ew42X/X5RWd9oXv2yKeoOr0=, tarball: '@vue/test-utils/download/@vue/test-utils-2.0.0-rc.14.tgz'} - peerDependencies: - vue: ^3.0.1 - dependencies: - vue: 3.2.21 - dev: false - /@vue/test-utils/2.0.0-rc.16_vue@3.2.21: resolution: {integrity: sha1-WTgPAocPhWrAAqKcAmgdPz/Lr+s=, tarball: '@vue/test-utils/download/@vue/test-utils-2.0.0-rc.16.tgz'} peerDependencies: