Skip to content

Commit 59d229b

Browse files
committed
build: pin pnpm to v9 in frontend stage
pnpm 10+ promotes the 'Ignored build scripts' warning into an error when the consumer hasn't approved scripts via package.json's onlyBuiltDependencies. The frontend lockfile pulls esbuild@0.21.5 and vue-demi@0.14.10, both of which need postinstall to materialize their binaries, so a fresh `pnpm install` on v10/v11 dies with: [ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: esbuild@0.21.5, vue-demi@0.14.10 exit code: 1 `pnpm@latest` resolves to whatever is current at build time, so the Dockerfile builds non-deterministically — it works on v9 (the version in use when the lockfile was first committed) and fails on v10+. Pin to v9 so the image keeps building until upstream adopts approve-builds or pre-declares onlyBuiltDependencies. NOT a fix to the codex-transform bug — this is purely a build-side deterministic-Dockerfile change. The fc-underscore PR (Wei-Shaw#2499) is the real fix and lives on the upstream-bound branch.
1 parent 348a487 commit 59d229b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ FROM ${NODE_IMAGE} AS frontend-builder
2121
WORKDIR /app/frontend
2222

2323
# Install pnpm
24-
RUN corepack enable && corepack prepare pnpm@latest --activate
24+
RUN corepack enable && corepack prepare pnpm@9 --activate
2525

2626
# Install dependencies first (better caching)
2727
COPY frontend/package.json frontend/pnpm-lock.yaml ./

0 commit comments

Comments
 (0)