-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
30 lines (29 loc) · 1.91 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
30
{
"compilerOptions": {
"target": "ES2020", // Modern JavaScript support
"module": "ESNext", // Use ESNExt module system for Node.js
"lib": ["ES2020", "DOM"], // ES2020 features and DOM APIs
"outDir": "./dist", // Output directory for compiled files
"rootDir": ".", // The root directory of input files (project root)
"strict": true, // Enable all strict type checking options
"esModuleInterop": true, // Interop with ES modules
"skipLibCheck": true, // Skip checking `.d.ts` files
"resolveJsonModule": true, // Enable importing JSON files
"moduleResolution": "node", // Module resolution strategy for Node.js
"allowSyntheticDefaultImports": true, // Allow default imports from modules with no default export
"forceConsistentCasingInFileNames": true, // Enforce consistent casing in file names
"baseUrl": ".", // Base URL for module resolution
"paths": { // Path aliases (if needed)
"@commands/*": ["src/commands/*"],
"@api/*": ["api/*"],
"@website/*": ["website/*"]
}
},
"include": [
"src/**/*.ts", // Include all .ts files in the src folder
"api/**/*.ts", // Include all .ts files in the api folder
"website/**/*.ts", // Include all .ts files in the website folder
"scripts/**/*.ts" // Include all .ts files in the scripts folder
, "src/scripts/start.js" ],
"exclude": ["node_modules", "dist"] // Exclude these directories from compilation
}