Problem Statement
Describe project references and their impact on builds/IDE.
Explanation
Project references split a large codebase into smaller TS projects that know about each other. Each subproject sets `composite: true`. Benefits: faster incremental builds, isolated outputs per package, and better IDE responsiveness. The root config lists references so `tsc -b` can build in the right order. CI becomes more stable and local feedback is quicker.
Code Solution
SolutionRead Only
// root/tsconfig.json
{
"files": [],
"references": [
{ "path": "packages/core" },
{ "path": "packages/web" }
]
}
// packages/core/tsconfig.json
{
"compilerOptions": { "composite": true, "outDir": "dist" },
"include": ["src"]
}
// Build all
// npx tsc -b