From f7cf5747c1259a0a822515ab0763ff89371a228c Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Tue, 12 May 2026 13:13:42 +0800 Subject: [PATCH] fix(docker): copy all workspace package.json manifests before pnpm install Dockerfile.dev only copied fn-app and fn-runtime package.json before `pnpm install --frozen-lockfile`. After PR #41 added fn-types, fn-generator, fn-client, and fn-cli to packages/, those four workspaces were absent at install time, so pnpm never created their node_modules/@constructive-io symlinks. The later `pnpm build` then failed inside the Docker image with TS2307 when fn-generator tried to resolve `@constructive-io/fn-types`, breaking the CI Test K8s workflow on main. Verified locally: `docker build -f Dockerfile.dev .` now completes end to end and packages/fn-generator/node_modules/@constructive-io/fn-types resolves to the workspace package. --- Dockerfile.dev | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile.dev b/Dockerfile.dev index fc73406..45db80d 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -12,6 +12,10 @@ COPY templates/ templates/ # Copy all package/job manifests for caching COPY packages/fn-app/package.json packages/fn-app/ COPY packages/fn-runtime/package.json packages/fn-runtime/ +COPY packages/fn-types/package.json packages/fn-types/ +COPY packages/fn-generator/package.json packages/fn-generator/ +COPY packages/fn-client/package.json packages/fn-client/ +COPY packages/fn-cli/package.json packages/fn-cli/ COPY job/server/package.json job/server/ COPY job/worker/package.json job/worker/ COPY job/service/package.json job/service/