forked from nitrojs/nitro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
74 lines (74 loc) · 2.36 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"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"],
"nitropack/cli": ["./src/cli"],
// Config
"nitro/config": ["./src/config"],
"nitropack/config": ["./src/config"],
// Core
"nitro/core": ["./src/core"],
"nitropack/core": ["./src/core"],
// Core (alias)
"nitro": ["./src/core"],
"nitropack": ["./src/core"],
// Runtime
"nitro/runtime": ["./src/runtime"],
"nitropack/runtime": ["./src/runtime"],
// Runtime subpaths
"nitro/runtime/*": ["./src/runtime/*"],
"nitropack/runtime/*": ["./src/runtime/*"],
// Runtime meta
"nitro/runtime/meta": ["./runtime-meta"],
"nitropack/runtime/meta": ["./runtime-meta"],
// Kit
"nitro/kit": ["./src/kit"],
"nitropack/kit": ["./src/kit"],
// Meta
"nitro/meta": ["./src/meta"],
"nitropack/meta": ["./src/meta"],
// Presets
"nitro/presets": ["./src/presets"],
"nitropack/presets": ["./src/presets"],
"nitro/presets/*": ["./src/presets/*"],
"nitropack/presets/*": ["./src/presets/*"],
// Rollup
"nitro/rollup": ["./src/rollup"],
"nitropack/rollup": ["./src/rollup"],
// Types
"nitro/types": ["./src/types"],
"nitropack/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"]
}