-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtsconfig.json
20 lines (20 loc) · 1.27 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"compilerOptions": {
"target": "ES2018", // Modern enough for Node.js and newer browsers, adjust as needed
"module": "ESNext", // For ESM support. Use "CommonJS" if targeting older Node.js versions
"lib": ["ES2018", "DOM"], // Include standard JS features and DOM typings
"declaration": true, // Generate .d.ts files
"outDir": "./dist", // Output directory for compiled files
"rootDir": "./src", // Root directory of source files
"strict": false, // Enable all strict type-checking options
"esModuleInterop": true, // Enables more interoperable default imports
"moduleResolution": "node", // Use Node.js module resolution strategy
"resolveJsonModule": true, // Allow importing '.json' files
"isolatedModules": true, // Ensure each file can be safely transpiled without relying on other imports
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export
"skipLibCheck": true, // Skip type checking of all declaration files (*.d.ts)
"forceConsistentCasingInFileNames": true // Ensure case sensitivity in file names
},
"include": ["src/**/*", "examples"], // Include all files in the src directory
"exclude": ["node_modules", "dist", "**/*.spec.ts"] // Exclude node_modules, dist, and test files
}