-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathtsconfig.json
More file actions
55 lines (55 loc) · 2.24 KB
/
Copy pathtsconfig.json
File metadata and controls
55 lines (55 loc) · 2.24 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
44
45
46
47
48
49
50
51
52
53
54
55
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"skipLibCheck": true,
"verbatimModuleSyntax": true,
"isolatedModules": true,
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
"noEmit": true,
// obuild emits .d.mts through oxc's isolated-declarations transform: it
// looks at one file at a time and refuses to guess a type it cannot read
// off the source. When it refuses, the build *warns* and moves on — the
// .mjs ships, the .d.mts silently does not, and `dist/index.d.mts` is
// left importing a declaration file that was never written. v0.6.2 went
// out that way, missing types for `errors`, `json/stream` and
// `xml/parser`. Typechecking under the same rule turns that warning into
// a `pnpm test` failure, where it is impossible to miss.
"declaration": true,
"isolatedDeclarations": true,
// No ambient types, deliberately. The library is platform-neutral —
// Web APIs only, no `node:` imports — and leaving `process`, `Buffer`
// and friends undeclared is what keeps it that way: reaching for one
// is a type error here rather than something that quietly works on
// the machine it was written on. The CLI is the one part allowed node
// builtins, and it is checked by tsconfig.cli.json instead. See #399.
"types": []
},
"include": ["src", "test"],
"exclude": [
"src/cli.ts",
"src/cli",
"test/cli.test.ts",
"test/threaded-comments-write.test.ts",
"test/ods-fidelity.test.ts",
"test/parity-statement.test.ts",
"test/real-files.test.ts",
"test/write-model.test.ts",
// Reads src/_types.ts off disk, so it needs `node:fs` — the same
// reason the file-reading tests above are here. See #474.
"test/_reflect.ts",
"test/reflect.test.ts",
// Reads the fixture corpus off disk, so it needs `node:fs`.
"test/third-party-fixtures.test.ts",
"test/ods-third-party.test.ts",
"test/worksheet-stream-chunks.test.ts",
"test/xlsb-short-records.test.ts",
"test/xlsx-stream-parity.test.ts",
"test/indexed-color-palette.test.ts",
"test/ods-column-default-style.test.ts",
"test/builder-coverage.test.ts"
]
}