Commit 82aeaba
ci(deps): approve esbuild + core-js build scripts for pnpm 11
Context: commit e8aa086 bumped package.json#packageManager from
pnpm@10.30.3 to pnpm@11.3.0. pnpm/action-setup honors that field, so CI
now installs pnpm 11.
Problem: pnpm 11 turns ERR_PNPM_IGNORED_BUILDS into a hard failure
(exit 1) when CI=true and a dependency declaring an install/build script
is not on the approval list. The repo had no onlyBuiltDependencies at
all, so both esbuild@0.27.3 and core-js@3.49.0 were flagged and
`pnpm install --frozen-lockfile` aborted in the setup action. It passed
on dev machines because pnpm 11 only warns (exit 0) outside CI.
Solution: add onlyBuiltDependencies to pnpm-workspace.yaml listing the
only two packages in the tree that ship build scripts. esbuild (pulled
by vite) links its platform binary; core-js (pulled by feather-icons)
runs a donation-notice postinstall.
Behavior: `CI=true pnpm install --frozen-lockfile` now exits 0 with no
ignored-builds error (verified: pre-fix exit 1, post-fix exit 0).
Files:
- pnpm-workspace.yaml:20-31 add onlyBuiltDependencies (esbuild, core-js)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6c737dd commit 82aeaba
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments