forked from nitrojs/nitro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
60 lines (60 loc) · 1.79 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
56
57
58
59
60
{
"compilerOptions": {
/* Base options: */
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"verbatimModuleSyntax": true,
/* Strictness */
"strict": true,
// TODO: enable noUncheckedIndexedAccess in subsequent PR
// "noUncheckedIndexedAccess": true,
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
/* If NOT transpiling with TypeScript: */
"module": "preserve",
"noEmit": true,
"jsx": "preserve",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
"lib": ["es2022", "webworker", "dom.iterable"],
"paths": {
// CLI
"nitro/cli": ["./src/cli"],
// Config
"nitro/config": ["./src/config"],
// Core
"nitro/core": ["./src/core"],
// Core (alias)
"nitro": ["./src/core"],
// Runtime
"nitro/runtime": ["./src/runtime"],
"nitro/runtime/internal": ["./src/runtime/internal"],
// Runtime meta
"nitro/runtime/meta": ["./runtime-meta"],
// Kit
"nitro/kit": ["./src/kit"],
// Meta
"nitro/meta": ["./src/meta"],
// Presets
"nitro/presets": ["./src/presets"],
"nitro/presets/*": ["./src/presets/*"],
// Rollup
"nitro/rollup": ["./src/rollup"],
// Types
"nitro/types": ["./src/types"],
// Virtual files
"#nitro-internal-virtual/*": ["./src/types/virtual/*"],
// Compatibility (#internal/nitro)
"#internal/nitro": ["./src/runtime"],
"#internal/nitro/*": ["./src/runtime/*"]
}
},
"include": ["src", "test", "scripts/gen-mirror.ts"],
"exclude": ["dist", "examples", "playground", "test/fixture"]
}