0.3.3 • Published 1 year ago
@maons/tsconfig v0.3.3
Typescript configurations
tsconfig.json
files for Node.js
, Next.js
and React.js
projects.
Getting Started
Install
npm install @maons/tsconfig --save-dev
Configuration
These are base shared tsconfig.json
s 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.