mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 18:40:34 -05:00
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:
committed by
James Long
parent
a7efc82944
commit
9e2d253fb6
@@ -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"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user