-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
39 lines (30 loc) · 1.28 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
/**
* This is the tsconfig.json for the devopos scripts, not for the UI or any other services.
*/
{
"compilerOptions": {
// for node.js 8.4+, we can output to 2017 (Allow to have native async/await and all)
"target": "es2017",
// 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": false, // 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. */
// 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",
// allow to import moment like: import moment from "moment"
"allowSyntheticDefaultImports": true
},
// We want more control about which code we will compile and exclude
"include": [
"./src/**/*.ts"
],
"exclude": [
"node_modules"
]
}