-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
45 lines (33 loc) · 1.23 KB
/
tsconfig.json
File metadata and controls
45 lines (33 loc) · 1.23 KB
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
45
/**
* This is the tsconfig.json for the devopos scripts, not for the UI or any other services.
*/
{
"compilerOptions": {
"target": "ES2021",
"module": "ESNext",
// This is important to support 3rd party modules that are still in a node.js/commonjs way
"moduleResolution": "node",
// To extract the maximum value from TypeScript, we use strict = true (no implicit, null check, ...)
"strict": true,
// 99% of the code will be .ts, and .js files will just be module glue and does not need to be processed by typescript (keep the glue small)
"allowJs": false,
"checkJs": false,
// "lib": ["esnext","dom"],
"sourceMap": true, // we do not need the sourcemap
// Since we are using ts-node, not really needed, but just in case we want to do a "tsc" on folder.
"outDir": "./dist/", /* Redirect output structure to the directory. */
"baseUrl": ".",
"declaration": true,
"experimentalDecorators": true,
"esModuleInterop": true
},
// We want more control about which code we will compile and exclude
"include": [
"./src/**/*.ts"
],
"exclude": [
"node_modules",
"services",
".rpt2_cache" // this folder will be created by the rollup-typescript2, so, need to exlude it, can become confusing.
]
}