Fixed Monorepo Merge Build

By default, TypeScript looks for type roots in
parent node_modules directories. We can't
do this because there are React types
that cause errors. This commit explicitly
defines the type roots for the package to avoid
that behavior.
This commit is contained in:
Christopher Allford 2022-05-06 13:06:22 -07:00
parent 245dd98b45
commit fc56455e47
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,10 @@
"outDir": "dist",
"rootDir": "src",
"strict": true,
"target": "es2019"
"target": "es2019",
"typeRoots": [
"./node_modules/@types"
],
},
"include": [
"src/**/*"