Skip to content

Commit c8ff9eb

Browse files
authored
chore: use pnpm shell-emulator instead of cross-env (#10023)
1 parent a87db1d commit c8ff9eb

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ hoist-pattern[]=pug
66
hoist-pattern[]=source-map-support
77
hoist-pattern[]=ts-node
88
strict-peer-dependencies=false
9+
shell-emulator=true

package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
"typecheck": "tsc -p scripts --noEmit && tsc -p playground --noEmit",
2121
"test": "run-s test-unit test-serve test-build",
2222
"test-serve": "vitest run -c vitest.config.e2e.ts",
23-
"test-build": "cross-env VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts",
24-
"test-build-without-plugin-commonjs": "cross-env VITE_TEST_WITHOUT_PLUGIN_COMMONJS=1 pnpm test-build",
23+
"test-build": "VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts",
24+
"test-build-without-plugin-commonjs": "VITE_TEST_WITHOUT_PLUGIN_COMMONJS=1 pnpm test-build",
2525
"test-unit": "vitest run",
2626
"test-docs": "pnpm run docs-build",
27-
"debug-serve": "cross-env VITE_DEBUG_SERVE=1 vitest run -c vitest.config.e2e.ts",
28-
"debug-build": "cross-env VITE_TEST_BUILD=1 VITE_PRESERVE_BUILD_ARTIFACTS=1 vitest run -c vitest.config.e2e.ts",
27+
"debug-serve": "VITE_DEBUG_SERVE=1 vitest run -c vitest.config.e2e.ts",
28+
"debug-build": "VITE_TEST_BUILD=1 VITE_PRESERVE_BUILD_ARTIFACTS=1 vitest run -c vitest.config.e2e.ts",
2929
"docs": "vitepress dev docs",
3030
"docs-build": "vitepress build docs",
3131
"docs-serve": "vitepress serve docs",
32-
"build": "pnpm -r --filter=./packages/* run build",
33-
"dev": "pnpm -r --parallel --filter=./packages/* run dev",
32+
"build": "pnpm -r --filter='./packages/*' run build",
33+
"dev": "pnpm -r --parallel --filter='./packages/*' run dev",
3434
"release": "tsx scripts/release.ts",
3535
"ci-publish": "tsx scripts/publishCI.ts",
3636
"ci-docs": "run-s build docs-build"
@@ -60,7 +60,6 @@
6060
"@typescript-eslint/eslint-plugin": "^5.36.1",
6161
"@typescript-eslint/parser": "^5.36.1",
6262
"conventional-changelog-cli": "^2.2.2",
63-
"cross-env": "^7.0.3",
6463
"esbuild": "^0.14.47",
6564
"eslint": "^8.23.0",
6665
"eslint-define-config": "^1.7.0",

playground/ssr-vue/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build:server": "vite build --ssr src/entry-server.js --outDir dist/server",
1212
"build:server:noExternal": "vite build --config vite.config.noexternal.js --ssr src/entry-server.js --outDir dist/server",
1313
"generate": "vite build --ssrManifest --outDir dist/static && npm run build:server && node prerender",
14-
"serve": "cross-env NODE_ENV=production node server",
14+
"serve": "NODE_ENV=production node server",
1515
"debug": "node --inspect-brk server"
1616
},
1717
"dependencies": {
@@ -24,7 +24,6 @@
2424
"@vitejs/plugin-vue": "workspace:*",
2525
"@vitejs/plugin-vue-jsx": "workspace:*",
2626
"compression": "^1.7.4",
27-
"cross-env": "^7.0.3",
2827
"dep-import-type": "link:./dep-import-type",
2928
"express": "^4.18.1",
3029
"serve-static": "^1.15.0"

0 commit comments

Comments
 (0)