From 58c87a0d55f18a21956750436be7f14b10b462df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=84=EC=98=81=EB=AF=BC?= Date: Fri, 8 May 2026 01:33:54 +0900 Subject: [PATCH] fix(ci): move pnpm build allowlist to pnpm-workspace.yaml The previous fix added pnpm.onlyBuiltDependencies to package.json, but pnpm v11 only honors this configuration when it lives in pnpm-workspace.yaml, so the docker build still failed with ERR_PNPM_IGNORED_BUILDS for sharp and unrs-resolver. Moves the allowlist to pnpm-workspace.yaml, removes the now-redundant package.json field, and copies the workspace file in the client Dockerfile so it is present during pnpm install. Co-Authored-By: Claude Opus 4.7 (1M context) --- docker/client/Dockerfile | 2 +- package.json | 6 ------ pnpm-workspace.yaml | 3 +++ 3 files changed, 4 insertions(+), 7 deletions(-) create mode 100644 pnpm-workspace.yaml diff --git a/docker/client/Dockerfile b/docker/client/Dockerfile index 08392204..723607d7 100644 --- a/docker/client/Dockerfile +++ b/docker/client/Dockerfile @@ -7,7 +7,7 @@ RUN apk add --no-cache libc6-compat WORKDIR /app -COPY package.json pnpm-lock.yaml* ./ +COPY package.json pnpm-lock.yaml* pnpm-workspace.yaml ./ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ corepack enable pnpm && pnpm install --frozen-lockfile diff --git a/package.json b/package.json index a6bb4d47..32743361 100644 --- a/package.json +++ b/package.json @@ -52,11 +52,5 @@ "semantic-release": "^24.2.9", "tailwindcss": "^4", "typescript": "^5" - }, - "pnpm": { - "onlyBuiltDependencies": [ - "sharp", - "unrs-resolver" - ] } } diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 00000000..8b16180b --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,3 @@ +onlyBuiltDependencies: + - sharp + - unrs-resolver