chore(build): support rush build on windows (#397)

This commit is contained in:
WanderWang 2025-06-20 20:35:02 +08:00 committed by GitHub
parent 082321bcdb
commit b211d0774f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -3,8 +3,8 @@
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "NODE_OPTIONS='--max-old-space-size=8192' && rm -rf ./doc_build && rspress build && shx cp -r llms/* doc_build/", "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 && shx rm -rf ./doc_build && rspress build && shx cp -r llms/* doc_build/",
"docs": "NODE_OPTIONS='--max-old-space-size=8192' tsx ./scripts/auto-generate.ts", "docs": "cross-env NODE_OPTIONS=--max-old-space-size=8192 && tsx ./scripts/auto-generate.ts",
"dev": "rspress dev", "dev": "rspress dev",
"lint": "eslint ./components --cache", "lint": "eslint ./components --cache",
"preview": "rspress preview", "preview": "rspress preview",
@ -62,7 +62,8 @@
"openai": "~4.98.0", "openai": "~4.98.0",
"dotenv": "~16.5.0", "dotenv": "~16.5.0",
"tsx": "~4.19.4", "tsx": "~4.19.4",
"shx": "0.4.0" "shx": "0.4.0",
"cross-env": "~7.0.3"
}, },
"homepage": "https://github.com/bytedance/flowgram.ai/" "homepage": "https://github.com/bytedance/flowgram.ai/"
} }

View File

@ -871,6 +871,9 @@ importers:
'@types/node': '@types/node':
specifier: ^18 specifier: ^18
version: 18.19.68 version: 18.19.68
cross-env:
specifier: ~7.0.3
version: 7.0.3
dotenv: dotenv:
specifier: ~16.5.0 specifier: ~16.5.0
version: 16.5.0 version: 16.5.0