fix: update build and test scripts to set Rayon and Tokio worker threads

This commit is contained in:
spaghet committed 2026-11-13 01:43:07 -05:00
1 parent fb8e42f632
commit d7b8a351c1
3 files changed
+14 -5

No files matched your search

+3 -3
View File
@@ -6,12 +6,12 @@
"dev": "dotenv -e .env -- astro dev",
"dev:network": "dotenv -e .env -- astro dev --host",
"start": "dotenv -e .env -- astro dev",
"build": "astro check && astro build",
"build": "export RAYON_NUM_THREADS=1 TOKIO_WORKER_THREADS=1; astro check && astro build",
"preview": "dotenv -e .env -- astro preview",
"preview:network": "dotenv -e .env -- astro dev --host",
"astro": "astro",
"test": "vitest run",
"test:watch": "vitest",
"test": "export RAYON_NUM_THREADS=1 TOKIO_WORKER_THREADS=1; vitest run",
"test:watch": "export RAYON_NUM_THREADS=1 TOKIO_WORKER_THREADS=1; vitest",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},