From c1498c1099666649c18bc87ddb0b96be8037b9a0 Mon Sep 17 00:00:00 2001 From: Till JS Date: Thu, 23 Apr 2026 02:31:20 +0200 Subject: [PATCH] fix(infra): include shared-types in mana-auth Dockerfile installer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mana-auth's package.json declares @mana/shared-types as a workspace dependency, but the Dockerfile's install stage never copied its source into the build context. pnpm then silently failed to create the workspace symlink under node_modules, and bun hit ENOENT on every import at runtime: "reading /app/services/mana-auth/node_modules/ @mana/shared-types". The broken image sat undetected as long as the long-running container didn't restart. Tonight's deploy recreated it and every mana-auth container immediately crash-looped — taking mana-api and mana-web down with it via depends_on. Same class of bug as 70c62e758 (shared-logger). Co-Authored-By: Claude Opus 4.7 (1M context) --- services/mana-auth/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/services/mana-auth/Dockerfile b/services/mana-auth/Dockerfile index b12ec36d5..a7e4dd130 100644 --- a/services/mana-auth/Dockerfile +++ b/services/mana-auth/Dockerfile @@ -12,6 +12,7 @@ COPY services/mana-auth/package.json ./services/mana-auth/ COPY packages/shared-hono ./packages/shared-hono COPY packages/shared-ai ./packages/shared-ai COPY packages/shared-logger ./packages/shared-logger +COPY packages/shared-types ./packages/shared-types # Install only mana-auth and its workspace deps RUN pnpm install --filter @mana/auth... --no-frozen-lockfile --ignore-scripts