TypeScript
Build Commands
Set up TypeScript project references for monorepos and complex projects. Build multiple packages with dependency ordering, incremental compilation, and composite projects.
10 commands
Pro Tips
Use 'tsc --build' (or 'tsc -b') for multi-project builds — it respects project references and build order.
Add 'composite: true' and 'references' to tsconfig.json for proper project dependency tracking.
Use 'tsc -b --clean' to remove all build outputs from referenced projects.
Common Mistakes
Project references require 'composite: true' and 'declaration: true'. Missing these causes confusing build errors.
Build mode doesn't support all tsconfig options. Check the docs for unsupported options in composite projects.