From 467b85abc7743a9389bee64f37dd8998b1595b05 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Wed, 20 May 2026 12:55:24 +0000 Subject: [PATCH] fix(docker): use pnpm --filter for all monorepo package builds 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 --- Dockerfile | 2 +- package.json | 2 +- packages/db/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 20b0c46..4c97aa3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/package.json b/package.json index 8c12780..fe6c0ad 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/db/package.json b/packages/db/package.json index ff7eab4..d4adc58 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -16,7 +16,7 @@ } }, "scripts": { - "build": "tsc", + "build": "tsc --project .", "generate": "drizzle-kit generate", "migrate": "drizzle-kit migrate", "seed": "tsx src/seed.ts",