Skip to content

Commit

Permalink
chore: remove cross-env (#2346)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Nov 21, 2022
1 parent 39ff27d commit 4f5efdb
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 20 deletions.
1 change: 1 addition & 0 deletions .npmrc
@@ -1,3 +1,4 @@
ignore-workspace-root-check=true
strict-peer-dependencies=false
shell-emulator=true
registry=https://registry.npmjs.org/
11 changes: 5 additions & 6 deletions package.json
Expand Up @@ -7,8 +7,8 @@
"description": "A blazing fast unit test framework powered by Vite",
"scripts": {
"ci": "ni && nr typecheck && nr lint && nr build && nr test:all",
"build": "pnpm -r --filter=./packages/** run build",
"dev": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" pnpm -r --parallel --filter=./packages/** run dev",
"build": "pnpm -r --filter='./packages/**' run build",
"dev": "NODE_OPTIONS=\"--max-old-space-size=8192\" pnpm -r --parallel --filter='./packages/**' run dev",
"docs": "pnpm -C docs run dev",
"docs:build": "pnpm -C docs run build",
"docs:serve": "pnpm -C docs run serve",
Expand All @@ -21,9 +21,9 @@
"release": "bumpp package.json packages/*/package.json --commit --push --tag && pnpm -r publish --access public",
"test": "vitest --api -r test/core",
"test:run": "vitest run -r test/core",
"test:all": "cross-env CI=true pnpm -r --stream run test --allowOnly",
"test:ci": "cross-env CI=true pnpm -r --stream --filter !test-fails --filter !test-browser --filter !test-esm run test --allowOnly",
"test:ci:single-thread": "cross-env CI=true pnpm -r --stream --filter !test-fails --filter !test-esm run test --allowOnly --no-threads",
"test:all": "CI=true pnpm -r --stream run test --allowOnly",
"test:ci": "CI=true pnpm -r --stream --filter !test-fails --filter !test-browser --filter !test-esm run test --allowOnly",
"test:ci:single-thread": "CI=true pnpm -r --stream --filter !test-fails --filter !test-esm run test --allowOnly --no-threads",
"typecheck": "tsc --noEmit",
"typecheck:why": "tsc --noEmit --explainFiles > explainTypes.txt",
"ui:build": "vite build packages/ui",
Expand All @@ -47,7 +47,6 @@
"@vitest/ui": "workspace:*",
"bumpp": "^8.2.1",
"c8": "^7.12.0",
"cross-env": "^7.0.3",
"esbuild": "^0.15.13",
"eslint": "^8.27.0",
"esno": "^0.16.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/package.json
Expand Up @@ -77,7 +77,7 @@
},
"scripts": {
"build": "rimraf dist && rollup -c",
"dev": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" rollup -c --watch -m inline",
"dev": "NODE_OPTIONS=\"--max-old-space-size=8192\" rollup -c --watch -m inline",
"prepublishOnly": "pnpm build"
},
"peerDependencies": {
Expand Down
10 changes: 0 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/coverage-test/package.json
Expand Up @@ -5,13 +5,13 @@
"test": "npm run test:c8 && npm run test:istanbul",
"test:c8": "npm run test:thread:c8 && npm run test:nothread:c8",
"coverage:c8": "vitest run --coverage.provider c8",
"coverage:thread:c8": "cross-env THREAD=true vitest run --coverage.provider c8",
"coverage:thread:c8": "THREAD=true vitest run --coverage.provider c8",
"coverage-test:c8": "vitest -c vitest.config-c8-coverage.ts run",
"test:thread:c8": "npm run coverage:thread:c8 && npm run coverage-test:c8",
"test:nothread:c8": "npm run coverage:c8 && npm run coverage-test:c8",
"test:istanbul": "npm run test:thread:istanbul && npm run test:nothread:istanbul",
"coverage:istanbul": "vitest run --coverage.provider istanbul",
"coverage:thread:istanbul": "cross-env THREAD=true vitest run --coverage.provider istanbul",
"coverage:thread:istanbul": "THREAD=true vitest run --coverage.provider istanbul",
"coverage-test:istanbul": "vitest -c vitest.config-istanbul-coverage.ts run",
"test:thread:istanbul": "npm run coverage:thread:istanbul && npm run coverage-test:istanbul",
"test:nothread:istanbul": "npm run coverage:istanbul && npm run coverage-test:istanbul"
Expand Down
2 changes: 1 addition & 1 deletion test/vite-node/package.json
Expand Up @@ -5,7 +5,7 @@
"test": "vitest",
"coverage": "vitest run --coverage",
"dev": "vite-node --watch ./src/*.ts",
"debug:dev": "cross-env DEBUG=vite-node:* node --inspect-brk ../../packages/vite-node/dist/cli.cjs --watch ./src/*",
"debug:dev": "DEBUG=vite-node:* node --inspect-brk ../../packages/vite-node/dist/cli.cjs --watch ./src/*",
"debug": "node --inspect-brk ../../packages/vite-node/dist/cli.cjs"
},
"devDependencies": {
Expand Down

0 comments on commit 4f5efdb

Please sign in to comment.