forked from prompted365/codegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
42 lines (42 loc) · 1.62 KB
/
tsconfig.json
File metadata and controls
42 lines (42 loc) · 1.62 KB
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
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "ES2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
/* If NOT transpiling with TypeScript: */
"moduleResolution": "NodeNext",
"module": "NodeNext", // Changed from ES2022 to NodeNext
"noEmit": false, // Allow emitting compiled files
/* If your code runs in the DOM: */
"lib": ["es2022", "dom", "dom.iterable"],
/* If your code doesn't run in the DOM: */
// "lib": ["es2022"],
/* If you're building for a library: */
// "declaration": true,
/* If you're building for a library in a monorepo: */
// "composite": true,
// "sourceMap": true,
// "declarationMap": true,
/* If you're using framework features: */
"jsx": "react-jsx", // Example for React
/* Project Structure */
"rootDir": "./src", // Specify root directory of source files
"outDir": "./dist", // Specify output directory for compiled files
"baseUrl": ".", // Base directory for non-relative module resolution
"paths": { // Optional: Define path mappings
"@/*": ["src/*"]
},
"typeRoots": ["./node_modules/@types", "./src/types"] // Include custom types
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx"], // Include all relevant files in src
"exclude": ["node_modules", "dist", "**/__tests__/**", "**/*.spec.ts", "**/*.test.ts"] // Exclude build output, tests, etc.
}