Skip to content

Commit

Permalink
fix(cli): prevent early returning on init cmd (#8164)
Browse files Browse the repository at this point in the history
* fix(cli): prevent early returning on init cmd

* chore(cli): add changeset
  • Loading branch information
ohsory1324 committed Jul 30, 2022
1 parent 7d86fd2 commit b75ca4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curly-clocks-warn.md
@@ -0,0 +1,5 @@
---
'@graphql-codegen/cli': patch
---

Prevent cli from early returning when run init command.
2 changes: 1 addition & 1 deletion packages/graphql-codegen-cli/src/cli.ts
Expand Up @@ -8,7 +8,7 @@ export async function runCli(cmd: string): Promise<number> {
await ensureGraphQlPackage();

if (cmd === 'init') {
init();
await init();
return 0;
}

Expand Down

1 comment on commit b75ca4b

@vercel
Copy link

@vercel vercel bot commented on b75ca4b Jul 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.