Repository navigation
Commit 38f2255
fix(build): pin pnpm to 10.32.1 (Railway was hitting bleeding-edge)
Previous fixes (move overrides to pnpm-workspace.yaml + add
onlyBuiltDependencies for esbuild/msw/sharp) work locally on pnpm
10.32.1 — install --frozen-lockfile finishes clean, no
ignored-builds warning. But Railway still failed:
[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: esbuild@0.27.2, msw@2.11.3, sharp@0.34.4
Root cause: the Dockerfile runs `corepack prepare pnpm@latest --activate`
which pulls whatever's *currently* on the npm registry. The latest
pnpm tightened its build-script policy to a hard error even when
onlyBuiltDependencies is set — or maybe the YAML key changed names in
a newer release. Either way, "@latest" gave us a moving target.
Two-part pin so local + CI stay aligned:
- Dockerfile: corepack prepare pnpm@10.32.1 (no longer @latest).
- package.json: packageManager: pnpm@10.32.1 — corepack will use
this for anyone running scripts locally too.
Bump intentionally when we validate a newer pnpm.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent af109aa commit 38f2255
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments