-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
21 lines (21 loc) · 1.1 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"compilerOptions": {
"target": "ES6", // Output ES6 JavaScript
"module": "commonjs", // Use CommonJS for Node.js
"rootDir": "src", // Directory of source TypeScript files
"outDir": "dist", // Output directory for compiled JavaScript
"strict": true, // Enable all strict type-checking options
"esModuleInterop": true, // Enable compatibility with CommonJS and ES modules
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true, // Skip type checking for library files
"moduleResolution": "node", // Use Node.js-style module resolution
"resolveJsonModule": true, // Allow importing `.json` files
"typeRoots": ["./node_modules/@types"], // Specify type definitions
"baseUrl": ".", // Base URL for module resolution
"paths": {
"*": ["node_modules/*", "src/types/*"]
}
},
"include": ["src/**/*"], // Include all TypeScript files in the `src` folder
"exclude": ["node_modules", "dist"] // Exclude output and dependencies
}