TypeScript Configuration
Watch Mode & Build Mode
Run tsc --watch for live dev checks and tsc -b for multi-project builds.
Last Updated: July 29, 2026
•
10 min read
tsc --watch re-compiles files automatically on save; tsc -b builds multi-project reference graphs in dependency order.
1. Introduction & Architecture
2. Deep Dive & Core Concepts
Build mode (tsc -b) automatically cleans and rebuilds outdated sub-project dependencies.
3. Basic Code Example
4. Advanced Production Patterns
5. Interactive Code Playground
console.log("tsc --watch and tsc --build optimize dev and CI pipelines.");
6. Common Pitfalls & Edge Cases
Note:
tsc --build can be abbreviated as tsc -b.7. Interview Q&A & Quizzes
Q: What is the difference between tsc and tsc -b?
A: tsc compiles a single project config; tsc -b compiles project references in proper dependency order.
8. Summary Comparison Table
| Flag | Primary Use Case |
|---|---|
--watch / -w | Development live re-checking |
--build / -b | Monorepo multi-project build orchestrator |