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+
|
||||
"lib": ["ES2021", "DOM"],
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"experimentalDecorators": true,
|
||||
"resolveJsonModule": true,
|
||||
"downlevelIteration": true,
|
||||
|
@ -11,10 +12,9 @@
|
|||
// Check JS files too
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
// Used for temp builds
|
||||
"outDir": "build",
|
||||
"moduleResolution": "Node",
|
||||
"module": "ESNext"
|
||||
"moduleResolution": "node",
|
||||
"module": "commonjs",
|
||||
"outDir": "build"
|
||||
},
|
||||
"exclude": ["node_modules", "build", "./app-plaid.js"]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue