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 }); }, }, ],