-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.node.json
More file actions
32 lines (32 loc) · 1.33 KB
/
Copy pathtsconfig.node.json
File metadata and controls
32 lines (32 loc) · 1.33 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
{
// The Node project: the build script, the tests, and src/node/ when it
// exists.
//
// src/node/ is named here although the directory has not been created. There
// is no CLI yet -- a batch transcriber over a folder of recordings is the
// obvious one, and it is not what this project is about. Naming it now costs
// nothing and means the day it appears is a day of writing code rather than a
// day of arguing with tsconfig.
//
// src/core/ is included as well, because src/node/ and the tests import it
// and the checker must follow those imports. It gets checked twice as a
// result, once here with Node's globals in scope and once in tsconfig.json
// without them. The browser project is the one that decides whether an
// isomorphic file is allowed to touch something.
"extends": "./tsconfig.base.json",
"compilerOptions": {
// DOM as well as Node: the tests exercise code that also runs in a page,
// and a browser-driven check would pass functions to something like
// page.evaluate, which are typed against the DOM rather than against Node.
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"types": ["node"]
},
"include": [
"src/core/**/*.js",
"src/node/**/*.js",
"scripts/**/*.mjs",
"test/**/*.mjs",
"types/**/*.d.ts"
],
"exclude": ["node_modules", "site/dist", "dist"]
}