-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtsconfig.json
More file actions
51 lines (38 loc) · 1.45 KB
/
Copy pathtsconfig.json
File metadata and controls
51 lines (38 loc) · 1.45 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
46
47
48
49
50
51
/**
* This is the tsconfig.json for the devopos scripts, not for the UI or any other services.
*/
{
"compilerOptions": {
// ES2021 for Node.js 16+
"target": "ES2021",
// Now, we have updated package.json to type = "module"
"module": "ESNext",
// to use native class field.
"useDefineForClassFields": true,
// This is important to support 3rd party modules
"moduleResolution": "node",
// To extract the maximum value from TypeScript, we use strict = true (no implicit, null check, ...)
"strict": true,
// 99.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,
"sourceMap": false, // we do not need the sourcemap (for /scripts/*.ts)
// Since we are using ts-node, not really needed, but just in case we want to do a "tsc" on folder.
"outDir": ".out",
"baseUrl": ".",
"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": [
"./scripts/**/*.ts"
],
"exclude": [
"node_modules",
"services",
".rpt2_cache" // this folder will be created by the rollup-typescript2, so, need to exlude it, can become confusing.
]
}