@steward-apps/tsconfig
v0.1.0
Published
Shared TypeScript configurations for Steward projects
Readme
@steward-apps/tsconfig
Shared TypeScript configurations for Steward projects.
Installation
pnpm add -D @steward-apps/tsconfigAvailable Configs
| Config | Use Case |
|--------|----------|
| base.json | Base configuration for all projects |
| react.json | React applications (Next.js, Vite) |
| node.json | Node.js backend services |
| library.json | Publishable packages/libraries |
Usage
Extend the appropriate config in your tsconfig.json:
React Application
{
"extends": "@steward-apps/tsconfig/react.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src", "*.config.ts"],
"exclude": ["node_modules"]
}Node.js Backend
{
"extends": "@steward-apps/tsconfig/node.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
}Library Package
{
"extends": "@steward-apps/tsconfig/library.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src"],
"exclude": ["node_modules", "dist"]
}Key Settings
- Target: ES2022 (modern JavaScript features)
- Module: ESNext with bundler resolution
- Strict mode: Enabled with
noUncheckedIndexedAccess - Declarations: Generated with source maps
