forked from samarth777/BrainSpark
-
Notifications
You must be signed in to change notification settings - Fork 7
/
tsconfig.json
26 lines (25 loc) · 1.25 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
{
"compilerOptions": {
"target": "ES2020", // Modern JS features
"module": "commonjs", // CommonJS modules for Node.js
"moduleResolution": "node", // Correct module resolution strategy
"outDir": "./dist", // Where to output the compiled files
"rootDir": "./src", // Root folder for your source files
"esModuleInterop": true, // Ensures interop with ES modules
"resolveJsonModule": true, // Allows importing JSON files
"strict": true, // Strict type-checking
"skipLibCheck": true, // Skip type checking of libraries
"lib": ["dom", "dom.iterable", "esnext"] // Support for browser and next-gen JS features
},
"include": [
"src/**/*.ts", // Include all TypeScript files in the src folder
"next-env.d.ts", // Include Next.js environment types
"*.ts", // Include all TypeScript files in the root
"*.tsx", // Include all TypeScript React files
".next/types/**/*.ts" // Include Next.js generated types
],
"exclude": [
"node_modules", // Exclude node_modules
"dist" // Exclude the compiled output folder
]
}