@jpapini/typescript-config
v1.5.6
Published
Custom Typescript configurations.
Downloads
13
Maintainers
Readme
Typescript configurations
Custom Typescript configurations.
Available configurations:
- Node.js projects:
@jpapini/typescript-config/tsconfig.node.json - React.js projects:
@jpapini/typescript-config/tsconfig.react.json - Nest.js projects:
@jpapini/typescript-config/tsconfig.nest.json
How to use
- Install the package and its required peer dependencies:
pnpm add -D @jpapini/typescript-config typescript @types/node- Create a
tsconfig.jsonfile in the root of your project and extend the desired configuration:
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@jpapini/typescript-config/tsconfig.node.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["src/*"]
}
},
"include": ["src/**/*", "dts/**/*"],
"exclude": ["node_modules", "dist"]
}Author
- Julien Papini [email protected]
