Skip to content

Commit b75ca4b

Browse files
authored
fix(cli): prevent early returning on init cmd (#8164)
* fix(cli): prevent early returning on init cmd * chore(cli): add changeset
1 parent 7d86fd2 commit b75ca4b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/curly-clocks-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-codegen/cli': patch
3+
---
4+
5+
Prevent cli from early returning when run init command.

packages/graphql-codegen-cli/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export async function runCli(cmd: string): Promise<number> {
88
await ensureGraphQlPackage();
99

1010
if (cmd === 'init') {
11-
init();
11+
await init();
1212
return 0;
1313
}
1414

0 commit comments

Comments
 (0)