-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
45 lines (32 loc) · 1.24 KB
/
Copy pathtsconfig.json
File metadata and controls
45 lines (32 loc) · 1.24 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
/**
* This is the tsconfig.json for the devopos scripts, not for the UI or any other services.
*/
{
"compilerOptions": {
// for node.js 12+
"target": "es2019",
// node.js does not support es2015, so, we tell typescript to output commonjs (we do not use rollup for server, just ts-node)
"module": "commonjs",
// 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": true, // we do not need the sourcemap
"outDir": "./dist/", /* Redirect output structure to the directory. */
// To extract the maximum value from TypeScript, we use strict = true (no implicit, null check, ...)
"strict": true,
// This is important to support 3rd party modules that are still in a node.js/commonjs way
"moduleResolution": "node",
"declaration": 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"
],
"exclude": [
"node_modules"
]
}