-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
55 lines (53 loc) · 1.8 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// {
// "files": ["./src/App.tsx", "src/main.tsx", "./src/vite-env.d.ts"],
// "references": [
// { "path": "./tsconfig.app.json" },
// { "path": "./tsconfig.node.json" }
// ]
// }
// {
// "files": ["./src/App.tsx", "src/main.tsx", "./src/vite-env.d.ts"],
// "references": [
// { "path": "./tsconfig.app.json" },
// { "path": "./tsconfig.node.json" }
// ],
// "compilerOptions": {
// "forceConsistentCasingInFileNames": true, // Ensures case-sensitive file imports
// "strict": true, // Enables strict type-checking
// "target": "ES2022", // Target ECMAScript version
// "module": "ESNext", // Modern module resolution
// "moduleResolution": "node", // Recommended for most projects
// "jsx": "react-jsx", // React JSX transformation
// "skipLibCheck": true, // Skip type checking for node_modules
// "esModuleInterop": true, // Simplifies imports
// "resolveJsonModule": true, // Allow importing JSON files
// "baseUrl": "./", // Base URL for module resolution
// "paths": {
// "@/*": ["src/*"] // Optional: Set up module aliasing
// }
// },
// "include": ["src/**/*.ts", "src/**/*.tsx"],
// "exclude": ["node_modules", "dist"]
// }
{
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"strict": true,
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "node",
"jsx": "react-jsx",
"skipLibCheck": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"baseUrl": "./",
"outDir": "./dist", // Ensure the output directory is set
"declaration": true, // Generate .d.ts files
"declarationMap": true, // Generate source maps for .d.ts files
"paths": {
"@/*": ["src/*"]
}
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules", "dist"]
}