@maons/tsconfig
v0.3.3
Published
<a name="readme-top"></a>
Downloads
17
Readme
Typescript configurations
tsconfig.json files for Node.js, Next.js and React.js projects.
Getting Started
Install
npm install @maons/tsconfig --save-devConfiguration
These are base shared tsconfig.jsons from which all other tsconfig.json's inherit from.
Node.js
Create a tsconfig.json file with the following content:
{
"extends": "@maons/tsconfig/base.json",
"compilerOptions": {
"outDir": "dist"
},
"include": ["src/**/*"]
}Next.js
Create a tsconfig.json file with the following content:
{
"extends": "@maons/tsconfig/nextjs.json",
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}React.js
Create a tsconfig.json file with the following content:
{
"extends": "@maons/tsconfig/react-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
}License
Licensed under the MIT license.
