mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
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:
parent
64c221a6c8
commit
7e1ea12e42
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user