-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
43 lines (38 loc) · 1.22 KB
/
tsconfig.json
File metadata and controls
43 lines (38 loc) · 1.22 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
{
"compilerOptions": {
// File Layout
"outDir": "./dist",
"rootDir": "src",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
// Environment Settings
"module": "node16", // Changed from "node20" - more stable/compatible
"moduleResolution": "node16",
"target": "ES2022", // Changed from "es2024" - better Node.js LTS support
"lib": ["ES2022"], // Match target version
"types": ["node"],
// Other Outputs
"sourceMap": true,
"declaration": true,
"declarationMap": true,
// Express-specific additions
"esModuleInterop": true, // Important for Express default imports
"allowSyntheticDefaultImports": true, // Helps with module imports
"resolveJsonModule": true, // If you import JSON configs
"forceConsistentCasingInFileNames": true, // Good for cross-platform
// Stricter Typechecking Options
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
// Recommended Options
"strict": true,
// "verbatimModuleSyntax": true,
"isolatedModules": true,
"noUncheckedSideEffectImports": true,
"moduleDetection": "force",
"skipLibCheck": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}