diff --git a/packages/cli/src/lib/make/prompts/prompts.ts b/packages/cli/src/lib/make/prompts/prompts.ts index 524fe8d8..4c8d1c8b 100644 --- a/packages/cli/src/lib/make/prompts/prompts.ts +++ b/packages/cli/src/lib/make/prompts/prompts.ts @@ -355,15 +355,6 @@ export async function bedframePrompts( }, ) - const parseAuthor = (author: string) => { - const [name, email, url] = author.split(',') - return { - name: name.trim(), - email: email.trim(), - url: url.trim(), - } - } - if (options.name) { extensionResponse.name = formatTargetDir(options.name) } @@ -374,7 +365,12 @@ export async function bedframePrompts( extensionResponse.description = options.description } if (options.author) { - extensionResponse.author = parseAuthor(options.author) + const [name, email, url] = options.author.split(',') + extensionResponse.author = { + name: name.trim(), + email: email.trim(), + url: url.trim(), + } } if (options.license) { extensionResponse.license = options.license