fix: 修复 CI 安装失败 —— pnpm 12 用 allowBuilds 而非 onlyBuiltDependencies
pnpm 12 在 pnpm-workspace.yaml 自动生成了 allowBuilds 占位(值为字面字符串),
而 package.json 的 pnpm.onlyBuiltDependencies 对该版本不生效,导致 CI 上
pnpm install --frozen-lockfile 报 ERR_PNPM_IGNORED_BUILDS。
修正 pnpm-workspace.yaml 为 allowBuilds: { esbuild: true },
本地已用 --frozen-lockfile 复现并验证修复。
This commit is contained in:
1 parent
192e08b171
commit
52b2c97bdf
1 file changed
+1
-1
+1
-1
@@ -2,4 +2,4 @@ packages:
|
||||
- 'packages/*'
|
||||
- 'apps/*'
|
||||
allowBuilds:
|
||||
esbuild: set this to true or false
|
||||
esbuild: true
|
||||
Reference in new issue
Block a user