This package contains shareable TypeScript compiler configuration used by the applications created with @shaizei/cli.
Using Yarn:
yarn add @shaizei/typescript-config typescript --dev
Using npm:
npm install @shaizei/typescript-config typescript --save-dev
- Create a new
tsconfig.js
at the root directory of your project. - Extend the config from
@shaizei/typescript-config
{
"extends": "@shaizei/typescript-config",
}
And that's it.
If you want to override some of the pre-defined configuration, then simply write them down after extending from @shaizei/typescript-config
.
{
"extends": "@shaizei/typescript-config",
"compilerOptions": {
...
},
"exclude": [...],
"include": [...]
}