-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
37 lines (34 loc) · 1.37 KB
/
tsconfig.json
File metadata and controls
37 lines (34 loc) · 1.37 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
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "ES2017", // Target modern browsers, adjust if needed
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
/* Strictness */
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitAny": true,
/* Bundled projects */
// Be more explicit with libs to ensure Promise, AsyncIterable, string methods, and DOM are included
"lib": ["ES2018", "DOM", "DOM.Iterable"],
"module": "ESNext", // Let Rollup handle final module format
"moduleResolution": "bundler", // Or "node" if preferred
"sourceMap": true, // Generate source maps for debugging
"outDir": "dist", // Output directory (though Rollup controls final output)
"declaration": true, // Generate .d.ts files
"declarationDir": "dist/types", // Output directory for .d.ts files
"declarationMap": true, // Generate source maps for .d.ts files
"types": ["vitest/globals", "node"], // Add vitest globals and node types
/* Alias */
// "baseUrl": ".", // Optional: for path aliases
// "paths": {
// "@/*": ["./src/*"]
// }
},
"include": ["src/**/*.ts", "tests/**/*.ts", "vitest.config.ts"], // Include tests and vitest config
"exclude": ["node_modules", "dist"] // Which files to exclude
}