-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
29 lines (29 loc) · 1.13 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
{
"compilerOptions": {
"target": "es6", // Target modern JavaScript (ES6+)
"module": "esnext", // Use ESNext modules for ESM compatibility
"lib": [
"dom",
"esnext"
], // Include DOM and latest ECMAScript features
"declaration": true, // Generate .d.ts files for TypeScript consumers
"declarationMap": true, // Generate source maps for declaration files
"emitDeclarationOnly": false, // Emit both .js and .d.ts files
"moduleResolution": "node", // Resolve modules using Node.js style
"esModuleInterop": true, // Ensure compatibility with CommonJS modules
"skipLibCheck": true, // Skip type checking for third-party libraries
"outDir": "./dist", // Output directory for compiled ESM files
"strict": true, // Enable strict type checking
"forceConsistentCasingInFileNames": true, // Enforce consistent file casing
"isolatedModules": true, // Enable isolated modules for faster builds
"resolveJsonModule": true, // Allow importing JSON files
"jsx": "preserve" // Preserve JSX for further transformation
},
"include": [
"src"
],
"exclude": [
"node_modules",
"dist"
]
}