-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtsconfig.json
More file actions
19 lines (19 loc) · 833 Bytes
/
Copy pathtsconfig.json
File metadata and controls
19 lines (19 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"exclude": ["dev", "dist", "test", "scripts", "vitest.config.ts"],
"extends": "@tsconfig/recommended/tsconfig.json",
"compilerOptions": {
"declaration": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
// The package targets Node 22+ and modern browsers, so emit native
// ES2022 (real #private fields, class fields) rather than downleveling
// to WeakMap helpers. Overrides the base target of es2016.
"target": "ES2022",
// The package runs on Node 22+ and modern browsers. Pin lib explicitly
// so the available runtime APIs don't depend on the base target (TS 6
// no longer pulls in es2017+ globals like Object.values by default).
// This is type-only and does not change the emitted output.
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"outDir": "dist/"
}
}