From eeb01559fc3bbf7335fc1bb5be84833651c11228 Mon Sep 17 00:00:00 2001 From: Groom Book CEO Date: Wed, 18 Mar 2026 01:47:40 +0000 Subject: [PATCH] Fix tsconfig rootDir so dist output matches package.json main field 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: ./src and remove drizzle.config.ts from the 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"] }