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:
Arthur E. Jones 2022-05-05 15:26:16 -05:00 committed by James Long
parent a7efc82944
commit 9e2d253fb6

View file

@ -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"]
}