-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtsconfig.json
More file actions
29 lines (25 loc) · 730 Bytes
/
tsconfig.json
File metadata and controls
29 lines (25 loc) · 730 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
27
28
29
{
"compilerOptions": {
// Node’s next-gen ESM
"module": "NodeNext",
"moduleResolution": "NodeNext",
// Output modern ES. Node 18 supports ES2020 or higher
"target": "ES2020",
// Strict type-checking
"strict": true,
"esModuleInterop": true,
// Usually helps with external type definitions
"skipLibCheck": true,
// Force consistent file naming
"forceConsistentCasingInFileNames": true,
// Dist folder
"outDir": "./dist",
"rootDir": "./src",
// Generate .d.ts for external use
"declaration": true,
"declarationMap": true
},
// We compile only "src" and skip node_modules + tests
"include": ["src"],
"exclude": ["node_modules", "**/__tests__"]
}