mirror of
https://github.com/HeyPuter/node.git
synced 2026-11-13 20:12:47 -10:00
15 lines
547 B
JSON
15 lines
547 B
JSON
// Typechecks scripts/, which runs under Node rather than in the browser.
|
|
//
|
|
// Separate from tsconfig.json because the two have incompatible ambient worlds: src
|
|
// wants `vite/client` and the DOM lib, this wants @types/node. Merging them would put
|
|
// Node's globals in scope for browser code, where several of them (`setTimeout`'s
|
|
// return type, most visibly) are the wrong shape.
|
|
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
"types": ["node"]
|
|
},
|
|
"include": ["scripts", "src/install"]
|
|
}
|