Skip to content

Commit

Permalink
Do not require nproc on macOS.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 44dabd0a41b6bd0881955a0dd68fbb2f02215607
  • Loading branch information
cpojer committed May 12, 2024
1 parent c072fbe commit ba74c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"test": "npm-run-all --parallel tsc:check lint lint:format relay vitest:run",
"tsc:check": "tsc",
"vitest:run-ci": "vitest run",
"vitest:run": "export VITEST_MAX_THREADS=$(( $(nproc --all) - 2 )) && export VITEST_MIN_THREADS=$(( $(nproc --all) - 2 )) && vitest run"
"vitest:run": "CPUS=$(if uname -s | grep -q Darwin; then sysctl -n hw.ncpu; else nproc --all; fi); export VITEST_MAX_THREADS=$(($CPUS - 2)); export VITEST_MIN_THREADS=$(($CPUS - 2)); vitest run"
},
"nodemonConfig": {
"watch": [
Expand Down

0 comments on commit ba74c69

Please sign in to comment.