From 5215441a0179c85bd6e3eeb92cd457305bfb2b5c Mon Sep 17 00:00:00 2001 From: Utkarshbhimte Date: Mon, 23 Mar 2026 15:03:48 +0000 Subject: [PATCH] fix: build plugin-sdk before server in Dockerfile The server imports @paperclipai/plugin-sdk but the Dockerfile wasn't: 1. COPYing the plugin-sdk package.json in the deps stage 2. Building shared + plugin-sdk before server in the build stage This caused TS2307 errors (Cannot find module '@paperclipai/plugin-sdk') and cascading TS7006/TS18046 errors in the server build. Co-Authored-By: Paperclip --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 014113e432..9c7be1b7e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,12 @@ COPY packages/adapters/gemini-local/package.json packages/adapters/gemini-local/ COPY packages/adapters/openclaw-gateway/package.json packages/adapters/openclaw-gateway/ COPY packages/adapters/opencode-local/package.json packages/adapters/opencode-local/ COPY packages/adapters/pi-local/package.json packages/adapters/pi-local/ +COPY packages/plugins/sdk/package.json packages/plugins/sdk/ +COPY packages/plugins/create-paperclip-plugin/package.json packages/plugins/create-paperclip-plugin/ +COPY packages/plugins/examples/plugin-hello-world-example/package.json packages/plugins/examples/plugin-hello-world-example/ +COPY packages/plugins/examples/plugin-file-browser-example/package.json packages/plugins/examples/plugin-file-browser-example/ +COPY packages/plugins/examples/plugin-authoring-smoke-example/package.json packages/plugins/examples/plugin-authoring-smoke-example/ +COPY packages/plugins/examples/plugin-kitchen-sink-example/package.json packages/plugins/examples/plugin-kitchen-sink-example/ RUN pnpm install --frozen-lockfile @@ -27,6 +33,8 @@ FROM base AS build WORKDIR /app COPY --from=deps /app /app COPY . . +RUN pnpm --filter @paperclipai/shared build +RUN pnpm --filter @paperclipai/plugin-sdk build RUN pnpm --filter @paperclipai/ui build RUN pnpm --filter @paperclipai/server build RUN test -f server/dist/index.js || (echo "ERROR: server build output missing" && exit 1)