From d7188215157053dcf4958cce6d4df181d882d749 Mon Sep 17 00:00:00 2001 From: "groombook-paperclip[bot]" <268890960+groombook-paperclip[bot]@users.noreply.github.com> Date: Wed, 18 Mar 2026 01:52:26 +0000 Subject: [PATCH] Fix tsconfig rootDir for correct dist output paths The db package's tsconfig included both src/ and drizzle.config.ts, causing tsc to compute rootDir as the package root. Output went to dist/src/index.js instead of dist/index.js, mismatching the main field. Set explicit rootDir in both db and types tsconfigs and remove drizzle.config.ts from build include. Co-Authored-By: Paperclip --- packages/db/tsconfig.json | 5 +++-- packages/types/tsconfig.json | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json index 0623b1a..3b421a7 100644 --- a/packages/db/tsconfig.json +++ b/packages/db/tsconfig.json @@ -6,7 +6,8 @@ "strict": true, "noUncheckedIndexedAccess": true, "skipLibCheck": true, - "outDir": "./dist" + "outDir": "./dist", + "rootDir": "./src" }, - "include": ["src", "drizzle.config.ts"] + "include": ["src"] } diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.json index d7595d0..3b421a7 100644 --- a/packages/types/tsconfig.json +++ b/packages/types/tsconfig.json @@ -6,7 +6,8 @@ "strict": true, "noUncheckedIndexedAccess": true, "skipLibCheck": true, - "outDir": "./dist" + "outDir": "./dist", + "rootDir": "./src" }, "include": ["src"] }