fix: add allowBuilds for esbuild in mock-oauth-builder Docker stage

The mock-oauth-builder stage runs pnpm install without access to the
monorepo's pnpm-workspace.yaml, so pnpm v11 blocks esbuild's build
scripts. Create a minimal pnpm-workspace.yaml with allowBuilds in
that stage.

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
This commit is contained in:
Devin AI 2026-06-02 17:14:30 +00:00
parent 64c221a6c8
commit 7e1ea12e42

View File

@ -138,7 +138,7 @@ RUN npm install
FROM node-base AS mock-oauth-builder
WORKDIR /mock-oauth
COPY apps/mock-oauth-server/package.json .
RUN pnpm install && pnpm add esbuild --save-dev
RUN printf 'allowBuilds:\n esbuild: true\n' > pnpm-workspace.yaml && pnpm install && pnpm add esbuild --save-dev
COPY apps/mock-oauth-server/src ./src
RUN npx esbuild src/index.ts --bundle --platform=node --target=node22 --outfile=dist/index.cjs