TypeScript Project References: Stop Rebuilding Packages That Didn't Change
Project references split one tsconfig into a dependency graph so tsc --build can skip unchanged packages. A two-package example, verification steps, and the gotchas.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Project references split one tsconfig into a dependency graph so tsc --build can skip unchanged packages. A two-package example, verification steps, and the gotchas.
TypeScript project references split a monolithic codebase into independently compiled units: faster incremental builds, compiler-enforced module boundaries, and a worked example of extracting a shared package.
Learn how TypeScript project references enable incremental builds, reduce compile times, and keep large monorepos responsive.
Use TypeScript project references with composite tsconfig files to get incremental, type-safe monorepo builds. Each package emits declarations, the root tsconfig orders builds, and tsc --build handles dependency order.