-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.scripts.json
More file actions
22 lines (22 loc) · 937 Bytes
/
Copy pathtsconfig.scripts.json
File metadata and controls
22 lines (22 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
// Type-check the `scripts/` tree (demo capture, etc.) without emitting.
// The base tsconfig only includes `src/**`, and the scripts run via tsx,
// which erases `import type` without validating — so type-level API drift
// in a script-only dependency (e.g. a renamed `domotion-svg` export) goes
// undetected. This config covers that gap; `npm run typecheck:scripts`
// wires it into CI. The scripts still RUN via tsx; this is `--noEmit` only.
//
// `DOM` libs are added on top of the base because the demo scripts pass
// browser-context callbacks to Playwright's `page.evaluate(() => …)`, whose
// bodies reference `document` / `window`.
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true,
"rootDir": ".",
"declaration": false,
"sourceMap": false,
"lib": ["ES2022", "DOM", "DOM.Iterable"]
},
"include": ["scripts/**/*.ts"],
"exclude": ["node_modules", "dist"]
}