Commit 57d2b71
committed
chore: bump pnpm to 11.9.0
- package.json5: packageManager: pnpm@9.15.0 → pnpm@11.9.0
- Dockerfile: 3 references updated (corepack + npm-install fallback)
- .github/workflows/publish.yml: corepack reference updated
pnpm 11 changes that affect this repo:
1. Postinstall scripts are disabled by default for supply-chain
safety. The whitelist lives in `pnpm-workspace.yaml` under
the `allowBuilds` key (a map of <pkg>: true). Earlier attempts
to put this in `pnpm.onlyBuiltDependencies` (deprecated) and
in `.npmrc` (rejected — only scalar settings allowed there)
failed; only project-level pnpm-workspace.yaml works.
Approved builds: @prisma/client, @prisma/client-runtime-utils,
@prisma/engines, esbuild, msw, prisma, sharp, unrs-resolver.
2. .npmrc no longer carries the (incorrect) `allow-builds[…]`
entries — that syntax was being silently ignored. Just leaves
the scalar settings and a comment pointing at pnpm-workspace.yaml.
3. Dockerfile now copies `pnpm-workspace.yaml` into the build
context alongside package.json5/pnpm-lock.yaml/.npmrc so
pnpm can read the allowBuilds config during docker build.
Verified end-to-end:
- `pnpm install` succeeds (was: ERR_PNPM_IGNORED_BUILDS)
- `pnpm run build` compiles all routes
- Docker image builds (~1.51 GB, down from 1.75 GB on pnpm 9)
Note: pnpm run check (oxlint/oxfmt/tsgo) was already broken on
main before this change — oxlint complains about a rule
`no-unresolved` not being found in plugin `import`. Pre-existing
issue, not introduced here. Filed in a separate thread.1 parent 1791f9c commit 57d2b71
6 files changed
Lines changed: 2358 additions & 2382 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments