-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtsconfig.json
More file actions
43 lines (42 loc) · 1.74 KB
/
Copy pathtsconfig.json
File metadata and controls
43 lines (42 loc) · 1.74 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
{
"compilerOptions": {
"target": "ES2022",
// `NodeNext`, not `Bundler`: no bundler runs over this output. `tsc`
// emits ESM straight into `dist/` and the consumer is Node >= 24 or
// Deno going through the real ESM resolver, which enforces exactly the
// rules `Bundler` relaxes — extensionless relative specifiers,
// directory-index resolution, `exports`-unaware `.d.ts` lookup. Under
// `Bundler` the compiler validated the emitted specifiers against a
// ruleset nothing downstream applies (#1008).
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"types": [],
"outDir": "dist",
"rootDir": "src",
"declaration": true,
// Both map kinds stay OFF: `files` publishes `dist/` and not `src/`,
// so every emitted map's `sources` pointed at a `../src/*.ts` the
// tarball never carried, and none of them held `sourcesContent`. A
// dangling map is worse than no map — a missing one degrades cleanly,
// a dangling one sends the editor and the debugger hunting for a file
// that will never appear (#1007). Turning either back on means
// shipping `src/` too, or setting `inlineSources`.
"declarationMap": false,
"sourceMap": false,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"isolatedModules": true,
"allowImportingTsExtensions": false,
"verbatimModuleSyntax": false
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "dist", "examples", "tests", "benchmarks"]
}