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 <noreply@paperclip.ing>
This commit was merged in pull request #41.
This commit is contained in:
groombook-paperclip[bot]
2026-03-18 01:52:26 +00:00
committed by GitHub
parent 817a76f8d5
commit d718821515
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -6,7 +6,8 @@
"strict": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true,
"outDir": "./dist"
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src", "drizzle.config.ts"]
"include": ["src"]
}
+2 -1
View File
@@ -6,7 +6,8 @@
"strict": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true,
"outDir": "./dist"
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src"]
}