-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.node.json
More file actions
44 lines (43 loc) · 1.52 KB
/
Copy pathtsconfig.node.json
File metadata and controls
44 lines (43 loc) · 1.52 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
{
/* Node-side tooling: build config, test runners, helper scripts. Kept apart
from tsconfig.json so the browser program can run with `"types": []` and no
Node globals leaking into the shipped library.
DOM is in `lib` here despite this being the Node program: Playwright specs
are Node modules whose page.evaluate() callbacks are browser code, so the
one file legitimately needs both. src/global.d.ts is pulled in for the
`window.thumbnailGen` augmentation those callbacks rely on. */
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"types": ["node"],
/* As in tsconfig.json. This config is standalone rather than extending
it, so the setting has to be repeated — and omitting it meant this
program typechecked its dependencies' own .d.ts files, which is not
ours to police. A third-party packaging mistake broke the build here
once already; the fix belongs upstream, not in our CI. */
"skipLibCheck": true,
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"moduleDetection": "force",
"verbatimModuleSyntax": true,
"allowJs": true,
"checkJs": false,
"noEmit": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": [
"rolldown.config.ts",
"playwright.config.ts",
"vitest.config.ts",
"scripts/**/*.mjs",
"tests/browser/**/*.ts",
"tests/browser/**/*.mjs",
"src/global.d.ts",
"src/types.ts"
]
}