fix: 构建环境 NODE_ENV=production 导致 npm 跳过 devDependencies
- build.bat 显式 set NODE_ENV=development + NPM_CONFIG_PRODUCTION=false (外部环境注入 NODE_ENV=production 时 vite/vue-tsc 静默不装, wails3 build 报 'vue-tsc' is not recognized) - 清理 frontend/package.json 残留的 'test' 脏字符(JSON 解析失败源头) - 重新生成 package-lock.json
This commit is contained in:
1 parent
58f693f110
commit
814012ec52
4 files changed
+79
-171
No files matched your search
@@ -2,6 +2,11 @@
|
||||
chcp 65001 >nul
|
||||
cd /d "%~dp0"
|
||||
|
||||
rem 防止外部环境(如 NODE_ENV=production)导致 npm 跳过 devDependencies
|
||||
rem (vite/vue-tsc 不装 → wails3 build 报 'vue-tsc' is not recognized)
|
||||
set NODE_ENV=development
|
||||
set NPM_CONFIG_PRODUCTION=false
|
||||
|
||||
echo [build] 终止旧进程...
|
||||
taskkill /f /im zerorigin.exe >nul 2>&1
|
||||
taskkill /f /im ZerOriginTool-Settings.exe >nul 2>&1
|
||||
|
||||
Reference in new issue
Block a user