Files
actual-actualbudget/tsconfig.json
Matiss Janis Aboltins 31a027fc64 [AI] Add per-package tsconfigs and typescript-strict-plugin for typecheck (#7019)
* [AI] Add per-package tsconfigs and typescript-strict-plugin for typecheck

Co-authored-by: Cursor <cursoragent@cursor.com>

* Update TypeScript configuration across multiple packages to correct plugin path key from "path" to "paths" and add reference to process-worker typings in index.electron.ts.

* Remove reference to process-worker typings in index.electron.ts and add new process-worker typings file for global Process augmentation.

* Refactor TypeScript build configurations across multiple packages by removing tsconfig.dist.json files and updating build scripts to use default TypeScript compilation. Adjusted compiler options to target ES2021 and enable declaration generation.

* Update TypeScript configuration in api package to refine include and exclude patterns for better file management.

* Update build script in api package to ensure migration SQL files are copied to the correct directory by creating the destination folder if it doesn't exist.

* Update TypeScript configurations in crdt and desktop-electron packages to refine include and exclude patterns for improved file management.

* Update TypeScript dependencies across multiple packages to include typescript-strict-plugin for enhanced type checking and maintain consistency in package.json files.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-21 21:26:22 +00:00

63 lines
1.8 KiB
JSON

{
"references": [
// TODO: enable once every project is ts
// { "path": "./packages/api" },
// { "path": "./packages/desktop-client" }
],
"compilerOptions": {
// "composite": true,
"target": "ES2022",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
"downlevelIteration": true,
// TODO: enable once every file is ts
// "strict": true,
"strictFunctionTypes": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"jsx": "preserve",
"types": ["vite/client", "vitest/globals"],
// Check JS files too
"allowJs": true,
"checkJs": false,
// Used for temp builds
"outDir": "build",
"moduleResolution": "bundler",
"module": "es2022",
// Until/if we build using tsc
"noEmit": true,
"paths": {
// TEMPORARY: Until we can fix the "exports" in the loot-core package.json
"loot-core/*": ["./packages/loot-core/src/*"],
"@desktop-client/*": ["./packages/desktop-client/src/*"],
"@desktop-client/e2e/*": ["./packages/desktop-client/e2e/*"],
// Allow importing from hyperformula's internal typings for custom function plugins
"hyperformula/typings/*": ["./node_modules/hyperformula/typings/*"]
}
},
"include": ["packages/**/*", "bin/*.ts"],
"exclude": [
"**/.*/",
"node_modules",
"**/node_modules/*",
"**/build/*",
"**/build-electron/*",
"**/client-build/*",
"**/dist/*",
"**/lib-dist/*",
"packages/api/@types",
"**/test-results/*",
"**/playwright-report/*",
"**/service-worker/*",
"packages/docs/**/*"
],
"ts-node": {
"compilerOptions": {
"module": "CommonJS"
}
}
}