Root TypeScript project references
Problem¶
No root tsconfig.json exists. IDE navigation across workspace boundaries (e.g., jumping from an LMS route into platform-config source) relies on individual tsconfig paths and package exports. This works but has friction:
- "Go to Definition" sometimes opens
.d.tsfiles instead of source - Whole-repo incremental typecheck (
tsc --build) is not possible - IDE restart required after package builds to pick up new types
Proposal¶
- Add root
tsconfig.jsonwithreferencespointing to each app and package - Each workspace's tsconfig adds
composite: true - Enables
tsc --buildfor faster incremental whole-repo type-checking
Acceptance criteria¶
- Root
tsconfig.jsonwithreferencesarray exists - All workspace tsconfigs include
composite: true -
tsc --buildfrom root succeeds - Existing
turbo run typecheckbehavior unchanged - IDE "Go to Definition" resolves to
.tssource files across packages -
npm run checkpasses
Out of scope¶
- Changing any existing
pathsaliases - Modifying
tsupbuild configs - Adding project references for test tsconfigs
Notes / decisions log¶
- 2026-07-07: Proposed. Low priority — current setup works, this is a polish improvement for IDE ergonomics.
- 2026-07-09: Deferred — moved to tickets/deferred/; no active implementation planned.