cli/new: fix interactive template select

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-02-10 11:54:09 +01:00
parent d08fd8d415
commit ab14f4e30f
@@ -37,7 +37,9 @@ export async function selectTemplateInteractively(
name: 'id',
message: 'What do you want to create?',
choices: config.templatePointers.map(t =>
t.description ? `${t.id} - ${t.description}` : t.id,
t.description
? { name: `${t.id} - ${t.description}`, value: t.id }
: t.id,
),
},
]);