mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
Call os.cpus in update-codeowners (#49063)
If you don't call it, you get the number of parameters of os.cpus, which is 0, which parseDefinition treats as a single to return an empty result instead of parsing.
This commit is contained in:
committed by
GitHub
parent
483a0b365c
commit
e005d43d19
@@ -13,7 +13,7 @@ async function main() {
|
||||
|
||||
clean();
|
||||
const dt = await getDefinitelyTyped(options, log);
|
||||
await parseDefinitions(dt, { nProcesses: os.cpus.length, definitelyTypedPath: "." }, log);
|
||||
await parseDefinitions(dt, { nProcesses: os.cpus().length, definitelyTypedPath: "." }, log);
|
||||
const allPackages = await AllPackages.read(dt);
|
||||
const typings = allPackages.allTypings();
|
||||
const maxPathLen = Math.max(...typings.map(t => t.subDirectoryPath.length));
|
||||
|
||||
Reference in New Issue
Block a user