fix: correct tsconfig for node.js
- specify module type, resolution, and interop. this package runs under nodejs, not a browser environment, and needs ts to be configured accordingly.
This commit is contained in:
parent
a7efc82944
commit
9e2d253fb6
1 changed files with 4 additions and 4 deletions
|
@ -4,6 +4,7 @@
|
||||||
// DOM for URL global in Node 16+
|
// DOM for URL global in Node 16+
|
||||||
"lib": ["ES2021", "DOM"],
|
"lib": ["ES2021", "DOM"],
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
|
@ -11,10 +12,9 @@
|
||||||
// Check JS files too
|
// Check JS files too
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
// Used for temp builds
|
"moduleResolution": "node",
|
||||||
"outDir": "build",
|
"module": "commonjs",
|
||||||
"moduleResolution": "Node",
|
"outDir": "build"
|
||||||
"module": "ESNext"
|
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "build", "./app-plaid.js"]
|
"exclude": ["node_modules", "build", "./app-plaid.js"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue