Closed antongolub closed 2 years ago
This should not be needed. URL
is a valid global in Node.js.
Correct, should not be needed. However built-in TS libdefs (4.5.4) do not reflect this fact.
And @types/node
too.
I'll push a PR to TS/DefinetlyTyped, but right now I'd like to fix our CI/CD.
Clarified for myself what's going on: it seems that if we have no explicit lib
declaration in compilerOptions
, TS attaches dom
, es5
, etc as default.
I forgot, this is actually a long running TS issue: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34960 (I cannot believe they have still not fixed that...)
relates #201
https://github.com/sindresorhus/globby/pull/201#discussion_r785471096