-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtsconfig.json
More file actions
24 lines (24 loc) · 832 Bytes
/
Copy pathtsconfig.json
File metadata and controls
24 lines (24 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"lib": ["ES2023", "DOM"],
"strict": true,
"noUncheckedIndexedAccess": true,
"esModuleInterop": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
"noEmit": true,
"types": ["node"],
"baseUrl": ".",
// Vite resolves @shared for the browser bundle; tsx needs the same mapping HERE, because the
// test runner executes web/src/**/*.test.ts from this root. Without it the web typecheck passes
// and the tests fail to resolve the import at run time, which reads as a broken test rather
// than a missing config line.
"paths": { "@shared/*": ["./src/*"] }
},
"include": ["src"],
"exclude": ["node_modules", "dist", "web"]
}