-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsconfig.json
20 lines (20 loc) · 903 Bytes
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"compilerOptions": {
"target": "ES2020", // build project compiles to es2017 syntax
"module": "CommonJS", // babbel, webpack has transpiler to work with commojs
"outDir": "./dist", // lib folder will be created where compiled file are placed.
"types": ["node", "jest"],
"moduleResolution": "Node10",
"declaration": true, // type defination are automatically placed into a particular file while building
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"removeComments": true,
"noImplicitAny": true,
"strictNullChecks": true,
"isolatedModules": true,
"noEmit": true,
},
"include": ["src", "src/errorHandler/t.ts"], // compile our ts code present in /src
"exclude": ["node_modules", "**/tests/*"], // usual convention to test the lib is present in **/
}