Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit bfeadd4

Browse files
author
Jason Kuhrt
authored
fix: user can select template from create-graphqlgen prompt (#392)
closes #390
1 parent f3df798 commit bfeadd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/create-graphqlgen/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ const main = async (cli: meow.Result) => {
7272
},
7373
])
7474

75-
template = availableTemplates.find(
76-
t => `${t.name} (${t.description})` === res.templateName,
75+
template = Templates.availableTemplates.find(
76+
t => t.name === res.templateName,
7777
)
7878
}
7979

0 commit comments

Comments
 (0)