tsconfig 1.8.0
Install from the command line:
Learn more about npm packages
$ npm install @codeoscopic/tsconfig@1.8.0
Install via package.json:
"@codeoscopic/tsconfig": "1.8.0"
About this version
This package includes our tsconfig custom config for TypeScript and React projects.
- Install the package:
npm install -D @codeoscopic/tsconfig
- Create a
tsconfig.json
file in your project root (Choose appropriate json configuration)
- @codeoscopic/tsconfig/library.json (For building TS libraries)
- @codeoscopic/tsconfig/react-library.json (For building React libraries)
- @codeoscopic/tsconfig/vite.json (For Vite React libraries)
Example using vite configuration:
{
"extends": "@codeoscopic/tsconfig/vite.json",
"include": ["src"],
"exclude": ["dist", "node_modules"],
"compilerOptions": {
"rootDir": "src",
"outDir": "dist"
}
}