fix(build): console 安装用 --ignore-scripts,绕开 pnpm 11 的 ERR_PNPM_IGNORED_BUILDS
This commit is contained in:
1 parent
1399bae59e
commit
c3d2c1416f
2 files changed
+3
-6
No files matched your search
@@ -1,5 +0,0 @@
|
|||||||
# pnpm 11 起,构建脚本白名单等设置从 package.json 的 "pnpm" 字段挪到这里。
|
|
||||||
# electron / electron-winstaller 必须在安装时执行脚本,否则拿不到 Electron 运行时二进制。
|
|
||||||
onlyBuiltDependencies:
|
|
||||||
- electron
|
|
||||||
- electron-winstaller
|
|
||||||
+3
-1
@@ -50,7 +50,9 @@ taskkill /im scoreboard.exe /f >nul 2>&1
|
|||||||
if not exist "rules" echo [warn] rules dir missing
|
if not exist "rules" echo [warn] rules dir missing
|
||||||
node deploy\prepare-extra.mjs || exit /b 1
|
node deploy\prepare-extra.mjs || exit /b 1
|
||||||
cd console
|
cd console
|
||||||
call pnpm install --frozen-lockfile || exit /b 1
|
REM pnpm 11 blocks postinstall by default; electron-builder fetches its own Electron
|
||||||
|
REM runtime into its cache, so skipping scripts here is safe (and avoids ERR_PNPM_IGNORED_BUILDS).
|
||||||
|
call pnpm install --frozen-lockfile --ignore-scripts || exit /b 1
|
||||||
call pnpm run dist || exit /b 1
|
call pnpm run dist || exit /b 1
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user