We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e67b4 commit 8cb7d43Copy full SHA for 8cb7d43
.changeset/ready-ravens-swim.md
@@ -0,0 +1,7 @@
1
+---
2
+'@graphql-codegen/cli': patch
3
4
+
5
+fix(graphql-codegen-cli): Don't hang when 0 CPUs are found
6
7
+Fixes generation when 0 CPUs are returned by os.cpus(), which occurs in sandbox environments.
packages/graphql-codegen-cli/src/codegen.ts
@@ -423,7 +423,7 @@ export async function executeCodegen(
423
};
424
});
425
426
- return task.newListr(generateTasks, { concurrent: cpus().length });
+ return task.newListr(generateTasks, { concurrent: cpus().length || 1 });
427
},
428
429
],
0 commit comments