Skip to content

Commit 3360e50

Browse files
build: add typeRoots to tsconfig as fix for possible conflicts with other types in repositories with this repo as submodule (#2035)
* build: add typeRoots to tsconfig as fix for possible conflicts with other types in repositories with this repo as submodule * build: add typeRoots to tsconfig.esm.json * build: set type roots for nodejs wrapper
1 parent bb902b3 commit 3360e50

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

nodejs/tsconfig.base.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"strictNullChecks": true,
1818
"target": "es2022",
1919
"incremental": true,
20-
"newLine": "LF"
20+
"newLine": "LF",
21+
"typeRoots": [
22+
"node_modules/@types"
23+
]
2124
},
2225
"exclude": [
2326
"node_modules"

nodejs/tsconfig.esm.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"strict": true,
1919
"strictNullChecks": true,
2020
"incremental": true,
21-
"newLine": "LF"
21+
"newLine": "LF",
22+
"typeRoots": [
23+
"node_modules/@types"
24+
]
2225
},
2326
"exclude": [
2427
"node_modules"

0 commit comments

Comments
 (0)