diff --git a/.npmrc b/.npmrc index 6d64ed70..148b202c 100644 --- a/.npmrc +++ b/.npmrc @@ -6,3 +6,4 @@ hoist-pattern[]=pug hoist-pattern[]=source-map-support hoist-pattern[]=ts-node strict-peer-dependencies=false +shell-emulator=true \ No newline at end of file diff --git a/package.json b/package.json index b2d0409c..3f5145d1 100644 --- a/package.json +++ b/package.json @@ -20,17 +20,17 @@ "typecheck": "tsc -p scripts --noEmit && tsc -p playground --noEmit", "test": "run-s test-unit test-serve test-build", "test-serve": "vitest run -c vitest.config.e2e.ts", - "test-build": "cross-env VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts", - "test-build-without-plugin-commonjs": "cross-env VITE_TEST_WITHOUT_PLUGIN_COMMONJS=1 pnpm test-build", + "test-build": "VITE_TEST_BUILD=1 vitest run -c vitest.config.e2e.ts", + "test-build-without-plugin-commonjs": "VITE_TEST_WITHOUT_PLUGIN_COMMONJS=1 pnpm test-build", "test-unit": "vitest run", "test-docs": "pnpm run docs-build", - "debug-serve": "cross-env VITE_DEBUG_SERVE=1 vitest run -c vitest.config.e2e.ts", - "debug-build": "cross-env VITE_TEST_BUILD=1 VITE_PRESERVE_BUILD_ARTIFACTS=1 vitest run -c vitest.config.e2e.ts", + "debug-serve": "VITE_DEBUG_SERVE=1 vitest run -c vitest.config.e2e.ts", + "debug-build": "VITE_TEST_BUILD=1 VITE_PRESERVE_BUILD_ARTIFACTS=1 vitest run -c vitest.config.e2e.ts", "docs": "vitepress dev docs", "docs-build": "vitepress build docs", "docs-serve": "vitepress serve docs", - "build": "pnpm -r --filter=./packages/* run build", - "dev": "pnpm -r --parallel --filter=./packages/* run dev", + "build": "pnpm -r --filter='./packages/*' run build", + "dev": "pnpm -r --parallel --filter='./packages/*' run dev", "release": "tsx scripts/release.ts", "ci-publish": "tsx scripts/publishCI.ts", "ci-docs": "run-s build docs-build" @@ -60,7 +60,6 @@ "@typescript-eslint/eslint-plugin": "^5.36.1", "@typescript-eslint/parser": "^5.36.1", "conventional-changelog-cli": "^2.2.2", - "cross-env": "^7.0.3", "esbuild": "^0.14.47", "eslint": "^8.23.0", "eslint-define-config": "^1.7.0", diff --git a/playground/ssr-vue/package.json b/playground/ssr-vue/package.json index 5c450d10..f3869dc9 100644 --- a/playground/ssr-vue/package.json +++ b/playground/ssr-vue/package.json @@ -11,7 +11,7 @@ "build:server": "vite build --ssr src/entry-server.js --outDir dist/server", "build:server:noExternal": "vite build --config vite.config.noexternal.js --ssr src/entry-server.js --outDir dist/server", "generate": "vite build --ssrManifest --outDir dist/static && npm run build:server && node prerender", - "serve": "cross-env NODE_ENV=production node server", + "serve": "NODE_ENV=production node server", "debug": "node --inspect-brk server" }, "dependencies": { @@ -24,7 +24,6 @@ "@vitejs/plugin-vue": "workspace:*", "@vitejs/plugin-vue-jsx": "workspace:*", "compression": "^1.7.4", - "cross-env": "^7.0.3", "dep-import-type": "link:./dep-import-type", "express": "^4.18.1", "serve-static": "^1.15.0"