pnpm add -D @importantimport/tsconfig # pnpm
yarn add -D @importantimport/tsconfig # yarn
npm i -D @importantimport/tsconfig # npm
// tsconfig.json
{
"extends": "@importantimport/tsconfig"
}
// tsconfig.app.json
{
"extends": "@importantimport/tsconfig/app.json",
"include": ["src", "test"]
}
// tsconfig.node.json
{
"extends": "@importantimport/tsconfig/node.json",
"include": ["*.config.ts", "*.config.js"]
}
This package has some framework-specific tsconfig parts that you can use to override the default tsconfig.
// 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
directory to see all available parts.