@importantimport/tsconfig
Version:
65 lines (48 loc) • 1.18 kB
Markdown
# /tsconfig [](https://npmjs.com/package/@importantimport/tsconfig)
## Usage
### Install
```bash
pnpm add -D /tsconfig # pnpm
yarn add -D /tsconfig # yarn
npm i -D /tsconfig # npm
```
### Example
###### general
```jsonc
// tsconfig.json
{
"extends": "@importantimport/tsconfig"
}
```
###### app
```jsonc
// tsconfig.app.json
{
"extends": "@importantimport/tsconfig/app.json",
"include": ["src", "test"]
}
```
###### node
```jsonc
// tsconfig.node.json
{
"extends": "@importantimport/tsconfig/node.json",
"include": ["*.config.ts", "*.config.js"]
}
```
### Parts
This package has some framework-specific tsconfig parts that you can use to override the default tsconfig.
```jsonc
// tsconfig.app.json
{
"extends": [
"@importantimport/tsconfig/app.json",
"@importantimport/tsconfig/parts/jsx-react.json",
"@importantimport/tsconfig/parts/paths-at.json"
],
"include": ["src", "test"]
}
```
Go to the [`parts`](/packages/tsconfig/parts/) directory to see all available parts.
## License
[MIT](../../LICENSE.md)