-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.base.json
51 lines (48 loc) · 1.46 KB
/
tsconfig.base.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
45
46
47
48
49
50
51
{
"compilerOptions": {
// General stuff ..................................
"lib": [
"ESNext",
],
"target": "ESNext",
"module": "NodeNext",
"esModuleInterop": true,
// Also see https://github.com/microsoft/TypeScript/issues/33079 for how "exports" field in
// package.json is supposed to work (and how it works in TS)
"moduleResolution": "NodeNext",
"composite": true, // enables reuse of projects
// Language settings and other assertions .........
"strict": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
// Compilation settings ...........................
"sourceMap": true,
"declarationMap": true,
"importHelpers": true, // prevent extra boilerplate at the top of files
// Command behaviour ..............................
// why do people like to clear terminals?
"preserveWatchOutput": true,
},
// Make sure tsc doesn't consider this a project (?)
"files": [],
"include": [],
}
// Example of directory-specific tsconfig:
// {
// "extends": "../tsconfig.base.json",
// "compilerOptions": {
// "rootDir": "src",
// "outDir": "dist",
// },
// "include": [
// "./src/**/*.ts"
// ],
// "references": [
// {"path": "../foo"},
// {"path": "../bar"},
// ]
// }
//
// references don't work in a extended tsconfig.
// Don't use baseUrl, it will mess with other packages importing this package.