@repo/typescript-config provides base TypeScript configurations that all apps and packages extend. It keeps compiler settings consistent across the monorepo.
Presets
| Config | Extends | Used by |
|---|---|---|
base.json | — | Library packages |
nextjs.json | base.json | Next.js apps (app, web, api) |
react-library.json | base.json | React component packages (design-system) |
convex.json | — | Convex backend (packages/backend/convex/) |
Usage
Extend a preset in your package’stsconfig.json:
apps/app/tsconfig.json
packages/auth/tsconfig.json
packages/backend/convex/tsconfig.json
Key Settings
All presets enablestrict mode and strictNullChecks. The base config targets ES2022 with NodeNext module resolution. The Next.js preset switches to Bundler resolution and adds the next plugin.
Changes to packages/typescript-config/ affect every app and package. Run bun run typecheck across the monorepo after modifying it.