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:
committed by
GitHub
parent
817a76f8d5
commit
d718821515
@@ -6,7 +6,8 @@
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"outDir": "./dist"
|
"outDir": "./dist",
|
||||||
|
"rootDir": "./src"
|
||||||
},
|
},
|
||||||
"include": ["src", "drizzle.config.ts"]
|
"include": ["src"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"outDir": "./dist"
|
"outDir": "./dist",
|
||||||
|
"rootDir": "./src"
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user