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+ // 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"]
} }