Skip to content

Latest commit

 

History

History

tsconfig

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.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.

(back to top)