-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
17 lines (17 loc) · 1.14 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"compilerOptions": {
"target": "ES2020", // Set target to ES2020 for modern features without going to ESNext
"module": "ESNext", // Use ESNext modules for modern module syntax (import/export)
"moduleResolution": "Node", // Use Node.js module resolution for proper import/export handling
"esModuleInterop": true, // Enables default import syntax for CommonJS modules
"strict": true, // Enable strict type-checking options for better type safety
"skipLibCheck": true, // Skip type checking of declaration files for faster compilation
"outDir": "./dist", // Output directory for compiled JavaScript files
"rootDir": "./src", // Root directory of your TypeScript files
"resolveJsonModule": true, // Allows importing JSON files as modules
"allowSyntheticDefaultImports": true, // Allow synthetic default imports for non-ES module packages
"forceConsistentCasingInFileNames": true // Enforce consistent casing for filenames (useful for case-sensitive systems)
},
"include": ["src/**/*.ts"], // Include all TypeScript files in src folder
"exclude": ["node_modules"] // Exclude node_modules folder from the compilation
}