Skip to content

Commit f520be2

Browse files
committed
perf(typecheck): make the root tsc project incremental
tsc -b packages/* already caches via composite builds; the root tsc -p tsconfig.json re-checked everything from scratch on every run. With incremental + a gitignored .tmp build-info file, a repeat typecheck drops from 2.0s to 0.4s wall (measured on a warm machine); cold runs are unchanged. *.tsbuildinfo and .tmp/ are already ignored.
1 parent 320a881 commit f520be2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tsconfig.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"noUnusedLocals": true,
1111
"noUnusedParameters": true,
1212
"noEmit": true,
13+
"incremental": true,
14+
"tsBuildInfoFile": ".tmp/tsconfig.tsbuildinfo",
1315
"allowImportingTsExtensions": true,
1416
"erasableSyntaxOnly": true,
1517
"rewriteRelativeImportExtensions": true,

0 commit comments

Comments
 (0)