9e2d253fb6
- specify module type, resolution, and interop. this package runs under nodejs, not a browser environment, and needs ts to be configured accordingly.
20 lines
522 B
JSON
20 lines
522 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
// DOM for URL global in Node 16+
|
|
"lib": ["ES2021", "DOM"],
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
"experimentalDecorators": true,
|
|
"resolveJsonModule": true,
|
|
"downlevelIteration": true,
|
|
"jsx": "preserve",
|
|
// Check JS files too
|
|
"allowJs": true,
|
|
"checkJs": true,
|
|
"moduleResolution": "node",
|
|
"module": "commonjs",
|
|
"outDir": "build"
|
|
},
|
|
"exclude": ["node_modules", "build", "./app-plaid.js"]
|
|
}
|