typescript-monorepo
Installation
SKILL.md
TypeScript Monorepo
TypeScript
Use TypeScript everywhere practical. Compiler settings are intentionally fairly strict.
- Shared compiler options live in
tsconfig.options.json. - Root
tsconfig.jsonmanages project references across the monorepo. - Typechecking uses TypeScript 7's native
tsc(the successor to thetsgopreview) and runs through moon:moonx <project>:typecheck(moon builds workspace dependencies first, since types resolve through each dependency's built dist). Next runs the sametscfor its build-time check throughexperimental.useTypeScriptCli, which is on by default since Next 16.3.
Project References
When adding a new package or app: