Add node types to package tsconfig; drop base typeRoots
Enable Node typings for packages/napcat-image-size by adding "compilerOptions.types": ["node"] to its tsconfig.json. Remove the restrictive "typeRoots" entry from tsconfig.base.json so type resolution can be controlled per-package and won't be forced globally.
This commit is contained in:
1 parent
811e30d9d8
commit
7ff62dfb78
1 file changed
-3
@@ -6,9 +6,6 @@
|
|||||||
"lib": [
|
"lib": [
|
||||||
"ES2021"
|
"ES2021"
|
||||||
],
|
],
|
||||||
"typeRoots": [
|
|
||||||
"./node_modules/@types"
|
|
||||||
],
|
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"noEmit": false,
|
"noEmit": false,
|
||||||
|
|||||||
Reference in new issue
Block a user