Commit a31f1d5
authored
Fix Docker build with pnpm@latest (#27)
* Move pnpm overrides to pnpm-workspace.yaml
The 'pnpm' field in package.json is no longer read by recent pnpm
versions (used by the Dockerfile via 'pnpm@latest'), causing
ERR_PNPM_LOCKFILE_CONFIG_MISMATCH on 'pnpm install --frozen-lockfile'.
Move the overrides to pnpm-workspace.yaml, the new home for these
settings, and update the Dockerfile to copy it.
* Skip dependency lifecycle scripts in Docker build
pnpm 11 (used by 'pnpm@latest' in the Dockerfile) treats ignored
build scripts as a hard error rather than the warning pnpm 10
produced, blocking the Docker build on esbuild's postinstall.
Pass --ignore-scripts to explicitly skip dependency lifecycle
scripts (esbuild's per-platform binaries are already provided by
its @esbuild/* sub-packages, so its postinstall is not required).1 parent 59d4bd8 commit a31f1d5
3 files changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 59 | | |
66 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments