fix(docker): use pnpm --filter for all monorepo package builds
CI / Lint & Typecheck (pull_request) Successful in 15s
CI / Test (pull_request) Successful in 20s
CI / Build & Push Docker Image (pull_request) Successful in 27s

Use pnpm --filter consistently for all three package builds in the
Dockerfile instead of mixing filter and cd approaches. Also set
--project . explicitly on tsc invocations to ensure tsconfig resolution
from the package directory rather than workspace root.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-05-20 12:55:24 +00:00
committed by Flea Flicker [agent]
parent e417d8f6a7
commit 467b85abc7
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ COPY packages/ packages/
COPY src/ src/
RUN pnpm --filter @groombook/types build && \
pnpm --filter @groombook/db build && \
/app/node_modules/.bin/tsc -p /app/tsconfig.json
pnpm --filter @groombook/api build
# Runtime
FROM node:20-alpine AS runner
+1 -1
View File
@@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc -p .",
"build": "tsc --project .",
"start": "node dist/index.js",
"lint": "eslint src --ext .ts",
"typecheck": "tsc --noEmit",
+1 -1
View File
@@ -16,7 +16,7 @@
}
},
"scripts": {
"build": "tsc",
"build": "tsc --project .",
"generate": "drizzle-kit generate",
"migrate": "drizzle-kit migrate",
"seed": "tsx src/seed.ts",