TypeScript tsconfig and Tooling/Composite project config

Enable settings required for project references.

Section: Project References

Composite project config

json
json
{
  "compilerOptions": {
    "composite": true,
    "declaration": true,
    "outDir": "dist"
  }
}
Explanation

Composite projects are required when you want to use `tsc --build` with references.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Project References
Reference another project
Declare a dependency on a sibling TS project.
OpenIn sheetjsonsame section
Clean project reference outputs
Use build mode clean command.
OpenIn sheetbashsame section
Minimal tsconfig
A small strict config for many projects.
OpenIn sheetjson1 tag match
List compilation files
Print files included in the program.
OpenIn sheetbash1 tag match
Node-focused tsconfig
Example config for modern Node.js projects.
OpenIn sheetjson1 tag match
Extended diagnostics
Measure compiler performance details.
OpenIn sheetbash1 tag match