Skip to content

Commit af109aa

Browse files
ralyodioclaude
andcommitted
fix(build): approve esbuild/msw/sharp build scripts for pnpm v10
The previous fix got past the lockfile mismatch. The next failure mode (in CI specifically) was ERR_PNPM_IGNORED_BUILDS — pnpm v10 sandboxes package install scripts by default, and Railway runs non-interactively so the "ignored" warning becomes a hard error. Add the three packages that genuinely need their postinstall hooks to the onlyBuiltDependencies allowlist in pnpm-workspace.yaml: - esbuild: native binary download + chmod. - msw: install-time worker stub generation. - sharp: libvips native binary download. Verified locally with pnpm v10.32: install --frozen-lockfile finishes clean, no ignored-scripts warning. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1c246b7 commit af109aa

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pnpm-workspace.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,12 @@ overrides:
1414
cookie: "1.1.1"
1515
diff: "8.0.4"
1616
serialize-javascript: "7.0.5"
17+
18+
# pnpm v10 sandboxes install scripts by default. Anything not listed
19+
# here gets its postinstall skipped — and in CI (or any non-interactive
20+
# context) that becomes ERR_PNPM_IGNORED_BUILDS instead of a warning.
21+
# These three packages need their native-build / setup hooks to run.
22+
onlyBuiltDependencies:
23+
- esbuild
24+
- msw
25+
- sharp

0 commit comments

Comments
 (0)