TypeScript tsconfig and Tooling/Reference another project

Declare a dependency on a sibling TS project.

Section: Project References

Reference another project

json
json
{
  "references": [
    { "path": "../shared" }
  ]
}
Explanation

Project references help large monorepos build incrementally and in dependency order.

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
Composite project config
Enable settings required for project references.
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