How to Speed Up TypeScript Builds in Monorepos Using Project References
Surprising fact: teams that adopt TypeScript Project References and incremental builds commonly see warm build times drop by 4x–10x — and CI times fall by 30–70% when combined with caching. If your monorepo feels sluggish, this is the lever that pays back fastest. TL;DR — Quick wins to speed up TypeScript build Enable composite + incremental in package tsconfigs, create a root tsconfig.json that lists references , and run builds with tsc --build . Add CI caching for .tsbuildinfo and emit directories. Use project references for type-check and declaration emit while using esbuild or swc for fast dev transpiles. Why TypeScript build times explode in monorepos Monorepos concentrate code, dependencies and type-surface area. Common pain points: Every tsc run type-checks the whole repo if not partitioned. Cascading recompiles: a small change in a core package forces rebuilds downstream. CI cold builds recompile everything, increasing minutes billed (often tens of minute...