generated from Cipscis/base-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
51 lines (48 loc) · 1.92 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
40
41
42
43
44
45
46
47
48
49
50
51
{
"include": ["src/**/*"],
"exclude": [
"src/**/__tests__/**/*",
"src/**/*.test.*",
"src/**/*.spec.*"
],
"compilerOptions": {
// Fixes some issues with non-ESM imports
// https://www.typescriptlang.org/tsconfig#esModuleInterop
"esModuleInterop": true,
// Skip type-checking declaration files, to improve performance
// https://www.typescriptlang.org/tsconfig#skipLibCheck
"skipLibCheck": true,
// Always target the latest supported ECMAScript version
// https://www.typescriptlang.org/tsconfig#target
"target": "ESNext",
// Standardises how type and non-type imports are treated
// https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax
"verbatimModuleSyntax": true,
// Tell TypeScript every file is a module, so it doesn't have to figure it out
// https://www.typescriptlang.org/tsconfig#moduleDetection
"moduleDetection": "force",
// Strict mode should really be a default
// https://www.typescriptlang.org/tsconfig#strict
"strict": true,
// Use Node module resolution, since this code is run using `ts-node`
// https://www.typescriptlang.org/tsconfig#moduleResolution
"moduleResolution": "NodeNext",
// This must be set to "NodeNext" when "moduleResolution" is set to "NodeNext"
// https://www.typescriptlang.org/tsconfig#module
// https://www.typescriptlang.org/docs/handbook/modules/reference.html#summary-1
"module": "NodeNext",
// Output directory for compiled code
// https://www.typescriptlang.org/tsconfig#outDir
"outDir": "dist",
// Generate source maps when compiling with `tsc`
// https://www.typescriptlang.org/tsconfig#sourceMap
"sourceMap": true,
// Include types for the latest ECMAScript features,
// excluding DOM APIs so it can run directly in Node
// https://www.typescriptlang.org/tsconfig#lib
"lib": ["ESNext"],
// Generate declaration files as part of compilation
// https://www.typescriptlang.org/tsconfig#declaration
"declaration": true
}
}