-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
36 lines (30 loc) · 1.82 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
// Base set from: https://github.com/tsconfig/bases/blob/main/bases/node14.json
// Ref: https://www.typescriptlang.org/tsconfig
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 14",
"compilerOptions": {
"lib": ["es2023"], // Reccomended for Node 20 - lib version in generated JS code (default matches target)
"module": "commonjs", // Reccomended for Node 20 - what module resolution system to assume when generating JS code
"target":"ES2022", // Reccomended for Node 20 - what flavor of JS to generate natively, newer syntax generates emulated code
"moduleResolution": "Node", // How tsc tries to find modules, tsc matches nodejs so "node" is the best choice. Default for Node.
"strict": true, // Reccomended for Node 14
"esModuleInterop": true, // Reccomended for Node 14
"skipLibCheck": true, // Reccomended for Node 14
"forceConsistentCasingInFileNames": true, // Reccomended for Node 14
"sourceMap": true, // Generates .map file for debugging
"outDir": "./build/", // write .js and .map files here
"rootDir": "./src", // Prevent an extra /src in the ourDir folder
"baseUrl": "./", // Assume imports are relative to current directory
"declaration": true, // Emit *.d.ts files
"noImplicitAny": true, // Extra checking
"strictNullChecks": true // Extra checking
},
"include": [
"src/**/*.ts",
"tests/**/*.ts"
],
"exclude": [
"node_modules"
]
}