-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
44 lines (32 loc) · 1.15 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* This is the tsconfig.json for the common files.
* This is for vscode as those files will be compiled from services/.... (and will use the tsconfig of the service)
*/
{
"compilerOptions": {
// ES2021 for Node.js 16+
"target": "ES2021",
// Now, we have updated package.json to type = "module"
"module": "ESNext",
// This is important to support 3rd party modules
"moduleResolution": "node",
"declaration": true,
// To extract the maximum value from TypeScript, we use strict = true (no implicit, null check, ...)
"strict": true,
// all can be .ts
"allowJs": false,
"checkJs": false,
"sourceMap": true, // for debug
"outDir": "dist/", /* Redirect output structure to the directory. */
"baseUrl": "./src/", /* Base directory to resolve non-absolute module names. */
"experimentalDecorators": true,
// Needed to call import default (replaces allowSyntheticDefaultImports)
"esModuleInterop": true,
// Disallow inconsistently-cased references to the same file.
"forceConsistentCasingInFileNames": true
},
// We want more control about which code we will compile and exclude
"include": [
"./src/**/*.ts"
]
}