diff --git a/.gitignore b/.gitignore index b74d3d582..39b563092 100644 --- a/.gitignore +++ b/.gitignore @@ -60,6 +60,9 @@ coverage .vitest-cache vitest.config.*.timestamp-* +# TypeScript incremental build +.tsbuildinfo + # playwright playwright-report test-results diff --git a/package.json b/package.json index 4783fb77e..7c6826e47 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "generate:icons": "electron-icon-builder --input=./build/logo.png --output=build", "analyze:renderer": "VISUALIZER_RENDERER=true yarn build", "analyze:main": "VISUALIZER_MAIN=true yarn build", - "typecheck": "npm run typecheck:node && npm run typecheck:web", + "typecheck": "concurrently -n \"node,web\" -c \"cyan,magenta\" \"npm run typecheck:node\" \"npm run typecheck:web\"", "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", "typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false", "check:i18n": "tsx scripts/check-i18n.ts", @@ -200,6 +200,7 @@ "cli-progress": "^3.12.0", "code-inspector-plugin": "^0.20.14", "color": "^5.0.0", + "concurrently": "^9.2.1", "country-flag-emoji-polyfill": "0.1.8", "dayjs": "^1.11.11", "dexie": "^4.0.8", diff --git a/tsconfig.node.json b/tsconfig.node.json index e18678b56..9159069b3 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -12,6 +12,8 @@ "src/renderer/src/services/traceApi.ts" ], "compilerOptions": { "composite": true, + "incremental": true, + "tsBuildInfoFile": ".tsbuildinfo/tsconfig.node.tsbuildinfo", "types": [ "electron-vite/node", "vitest/globals" diff --git a/tsconfig.web.json b/tsconfig.web.json index eb7bb1d09..cb2ac3c28 100644 --- a/tsconfig.web.json +++ b/tsconfig.web.json @@ -12,6 +12,8 @@ ], "compilerOptions": { "composite": true, + "incremental": true, + "tsBuildInfoFile": ".tsbuildinfo/tsconfig.web.tsbuildinfo", "jsx": "react-jsx", "baseUrl": ".", "moduleResolution": "bundler",