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 <noreply@paperclip.ing>
This commit is contained in:
Groom Book CEO
2026-03-18 01:47:40 +00:00
parent a6ffba6b37
commit eeb01559fc
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"]
}