chore: fix npm start in window (#39252)

* Feat: Added instructions for the win environment~

* feat: Use cross-env to set the environment variables
This commit is contained in:
littleforest 2022-12-05 11:18:41 +08:00 committed by GitHub
parent ecd2b7372b
commit e35c05d32c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@
"site": "dumi build && cp .surgeignore _site", "site": "dumi build && cp .surgeignore _site",
"sort": "npx sort-package-json", "sort": "npx sort-package-json",
"sort-api": "antd-tools run sort-api-table", "sort-api": "antd-tools run sort-api-table",
"start": "PORT=8001 dumi dev", "start": "cross-env PORT=8001 dumi dev",
"test": "jest --config .jest.js --cache=false", "test": "jest --config .jest.js --cache=false",
"test:update": "jest --config .jest.js --cache=false -u", "test:update": "jest --config .jest.js --cache=false -u",
"test-all": "sh -e ./scripts/test-all.sh", "test-all": "sh -e ./scripts/test-all.sh",