-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
43 lines (40 loc) · 1.69 KB
/
Copy pathtsconfig.json
File metadata and controls
43 lines (40 loc) · 1.69 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
{
// Type checking only. Bun executes TypeScript directly and `bun build`
// produces `dist/index.js`, so this project never emits through tsc:
// `tsc --noEmit` is the type gate, `bun test` is the behavior gate.
//
// `@types/bun` supplies every runtime type this package uses -- `Bun.which`,
// `Bun.spawn`, `Bun.CryptoHasher`, `Bun.file` -- so its version moves in step
// with the Bun version `.github/workflows/ci.yml` pins.
"compilerOptions": {
"target": "ESNext",
"lib": ["ESNext"],
"module": "Preserve",
"moduleResolution": "bundler",
"moduleDetection": "force",
"types": ["bun"],
"noEmit": true,
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"isolatedModules": true,
// `strict` alone permits two mistakes this package cannot afford.
//
// `noUncheckedIndexedAccess` matters for `checksums.txt` parsing and
// archive-member accounting, both of which index into split results whose
// length they have just tested; without it a wrong test still type-checks.
//
// `exactOptionalPropertyTypes` matters because the owned `mcp.json` entry
// must be written with absent fields *omitted* rather than present as
// `undefined`: `JSON.stringify` drops an explicit `undefined`, so without
// this flag a key the writer believes it set can silently vanish from the
// operator's configuration.
"strict": true,
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
"noPropertyAccessFromIndexSignature": true,
"skipLibCheck": true
},
"include": ["src/**/*.ts", "test/**/*.ts", "scripts/**/*.ts"]
}