mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 17:47:26 -05:00
* Bundle loot-core types into the API So we can have loot-core be the source of truth for some types that get passed through - Improves downstream development with API by including types - Use path aliases for dist vs dev tsconfigs - Convert api index to typescript as example - Permit ts-ignore for issues with our version of typescript --------- Co-authored-by: Matiss Janis Aboltins <matiss@mja.lv>
20 lines
520 B
JSON
20 lines
520 B
JSON
{
|
||
"extends": "../../tsconfig.json",
|
||
"compilerOptions": {
|
||
// Using ES2021 because that’s the newest version where
|
||
// the latest Node 16.x release supports all of the features
|
||
"target": "es2021",
|
||
"module": "CommonJS",
|
||
"moduleResolution": "Node16",
|
||
"noEmit": false,
|
||
"declaration": true,
|
||
"outDir": "dist",
|
||
"declarationDir": "@types",
|
||
"paths": {
|
||
"loot-core/*": ["./@types/loot-core/*"],
|
||
}
|
||
},
|
||
"include": ["."],
|
||
"exclude": ["**/node_modules/*", "dist", "@types"]
|
||
}
|