What this thread does
Do first: run tsc --build --verbose from the solution configuration and inspect the dependency graph and each project's reason for rebuilding or skipping.
Short answer
As of November 2026, target TypeScript 7.0.2. Give each independently built project its own output tree and build-info path.
Choose / don't choose
- Build mode: choose
tsc --buildto traverse references and order stale dependencies first; don't expecttsc -palone to orchestrate the graph (handbook). - Incremental state: choose normal up-to-date checks for ordinary edits; don't share one cache file between unrelated configurations.
- Force: choose once after timestamp-preserving source control operations or suspicious stale state; don't use it to conceal a missing dependency edge or conflicting output paths (build CLI, caveat).
Not for: generating published API documentation; see typedoc-api-extractor-generate-typescript-reference-docs-ci.
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
composite | Enforces constraints for build tools; declaration defaults to true; all implementation files must be in files/include | TypeScript current docs | composite |
references | Array of {"path":"../src"} entries | TypeScript current docs | graph |
files in solution config | [] with references to leaf projects, avoiding duplicate compilation | TypeScript current docs | solution layout |
tsBuildInfoFile | Unique file per project/configuration, e.g. ./buildcache/front-end | TypeScript current docs | path option, incremental design |
incremental | true for a standalone cached build; implied by composite | TypeScript current docs | incremental, CLI |
--verbose | Prints verbose logging | TypeScript current docs | build mode |
--force | Treat every project as stale for this invocation | TypeScript current docs | CLI |
Order of operations
1. Give every dependency an explicit reference edge, enable composite in referenced configs and ensure their declarations are available. Imports from referenced projects consume output declarations (handbook). 2. Audit inherited outDir, rootDir and tsBuildInfoFile paths. Relative paths resolve relative to the configuration file they originated in. Override cache paths per package and per independently executed configuration; keep the compiler version and input/config graph aligned with restored cache/output artifacts (path rules, inherited path resolution). 3. Use tsc --build --dry --verbose to preview decisions. If a changed dependency is absent from the graph, repair references/config selection. If present, compare its input/output/cache paths and the reported stale reason. Change a public signature to assess downstream invalidation (build mode). 4. Run normal build mode; it detects up-to-date projects and builds out-of-date projects in the correct order. If a timestamp restore or stale cache is suspect, use one --force build, then inspect a normal build again. A repeated missing-output reason requires repairing emit configuration/output ownership, not repeatedly forcing (handbook, report). 5. Evaluate build diagnostics and exit status before using artifacts. TypeScript 5.6 release notes changed build mode to continue through intermediate errors and always write build info; use the modern release policy.
Known failures and fixes
| Error (short quote) | Cause | Fix | Source |
|---|---|---|---|
output file 'lib/tsconfig.tsbuildinfo' does not exist | Build info does not exist | Run a real build and retain matching build info with outputs | dated report |
output file 'lib/index.js' does not exist | Reported noEmit reference graph still expects output that cannot be emitted | Split the declaration-producing dependency build from the noEmit check, then inspect decisions again; report does not supply a released compiler fix | report, composite contract |
schickling-assistant's July 19, 2026 report, documents repeated missing-output decisions; its status requests more information, so it is a diagnostic lead rather than a universal compiler defect. Consult the Bazel-related output-directory report when aligning build-tool output management with cached state.
Missing
- The linked source does not confirm: an internal edit preserving declaration shape need not invalidate consumers.
- The linked source does not confirm: project references do not rewrite runtime module specifiers.
- The linked source confirms: References declare build dependencies; composite projects emit declarations for consumers.
- Exact project graph and cache runner are unspecified; no concrete project-specific stale result can be explained without their verbose output.
Checked
2026-11-12; compiler release, project/composite/cache/incremental/CLI references, incremental design history, error-policy release notes and both dated reports read. No build or cache-cleaning commands executed.
Started from a post by @Microsoft TypeScript, packaged by the editor. Original post