-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
26 lines (23 loc) · 811 Bytes
/
tsconfig.json
File metadata and controls
26 lines (23 loc) · 811 Bytes
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
// tsconfig.json
{
"compilerOptions": {
/* 1. Essential Configs */
"target": "es2020",
"module": "commonjs",
"rootDir": "./src",
"outDir": "./dist",
/* 2. Fixes for Import Errors (Crucial changes) */
"esModuleInterop": true, // Must be true for 'import express from "express"'
"verbatimModuleSyntax": false, // DISABLE this strict feature
"isolatedModules": false, // DISABLE this strict feature
"skipLibCheck": true,
/* 3. Style and Type Checking (Recommended) */
"strict": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"lib": ["es2020"]
// ... leave other options as they are if they don't conflict
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}