fix(mana-credits): correct pnpm workspace filter (@mana/credits-service, not @mana/credits)

Build was succeeding-by-luck because the wrong filter resolved to
nothing → pnpm installed all workspace deps. After Phase 3.A added
the new grant route, the install pruning must have changed enough
that the build started failing with /app/node_modules: not found.
Fix the filter to match the real package name.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-27 14:27:18 +02:00
parent 2266d83cd4
commit 39a6f42209

View file

@ -12,8 +12,10 @@ COPY packages/shared-hono ./packages/shared-hono
COPY packages/shared-logger ./packages/shared-logger
COPY packages/shared-types ./packages/shared-types
# Install only mana-credits and its workspace deps
RUN pnpm install --filter @mana/credits... --no-frozen-lockfile --ignore-scripts
# Install only mana-credits-service and its workspace deps.
# Note the suffix — the workspace name is `@mana/credits-service`, not
# `@mana/credits` (which is a different package under packages/credits).
RUN pnpm install --filter @mana/credits-service... --no-frozen-lockfile --ignore-scripts
# Runtime stage: bun
FROM oven/bun:1 AS production