From b9920fde9e7478da8391b4c7025c468c15da3c4d Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Fri, 25 Nov 2022 10:06:45 -0500 Subject: [PATCH] fix: bad concurrency config --- .changeset/short-buses-share.md | 5 +++++ packages/graphql-codegen-cli/src/codegen.ts | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changeset/short-buses-share.md diff --git a/.changeset/short-buses-share.md b/.changeset/short-buses-share.md new file mode 100644 index 00000000000..13445f882dc --- /dev/null +++ b/.changeset/short-buses-share.md @@ -0,0 +1,5 @@ +--- +'@graphql-codegen/cli': patch +--- + +fix bad concurrency config diff --git a/packages/graphql-codegen-cli/src/codegen.ts b/packages/graphql-codegen-cli/src/codegen.ts index 6905ae43e3f..6baad3c78a8 100644 --- a/packages/graphql-codegen-cli/src/codegen.ts +++ b/packages/graphql-codegen-cli/src/codegen.ts @@ -383,11 +383,10 @@ export async function executeCodegen(input: CodegenContext | Types.Config): Prom }, // It doesn't stop when one of tasks failed, to finish at least some of outputs exitOnError: false, - concurrent: cpus().length, }; }); - return task.newListr(generateTasks); + return task.newListr(generateTasks, { concurrent: cpus().length }); }, }, ],