-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtsconfig.json
More file actions
44 lines (38 loc) · 1.66 KB
/
tsconfig.json
File metadata and controls
44 lines (38 loc) · 1.66 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
43
44
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "ES2022", // Or a newer version like ESNext if preferred
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true, // Recommended for build tools like esbuild/swc
/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true, // Recommended for stricter array/object access
// "noImplicitOverride": true, // Consider enabling later if needed
/* If NOT transpiling with ESM bundler: */
"module": "CommonJS", // Output module format
"outDir": "./dist",
"sourceMap": true, // Generate source maps for debugging
/* If your code runs in the DOM:
"lib": ["es2022", "dom", "dom.iterable"], */
/* If your code doesn't run in the DOM: */
"lib": ["es2022"],
/* Module Resolution Options */
"moduleResolution": "node", // Or "NodeNext" if using newer Node.js features/ESM imports extensively
"baseUrl": ".", // Base directory for path aliases (if any)
"paths": {
"@semble/types": ["./src/types/src/index.ts"],
"@semble/types/*": ["./src/types/src/*"]
},
/* Emit Options */
"declaration": false, // Don't emit .d.ts files for an application
"noEmit": false // Ensure JS files are emitted (set to true if using a bundler like esbuild/swc for emit)
/* Project Structure */
// "rootDir": "./src" // Removed: Let TS infer the root from 'include' paths
},
"include": ["src/**/*", "tests/**/*"], // Include source and test files
"exclude": ["node_modules", "dist", "src/webapp/**/*"] // Exclude build output and dependencies
}