mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
fix types in initiate
This commit is contained in:
parent
ef41d67fde
commit
9269fd480d
@ -249,7 +249,6 @@ const projectTypeInquirer = async (options: { yes?: boolean }) => {
|
||||
type: 'confirm',
|
||||
name: 'manual',
|
||||
message: 'Do you want to manually choose a Storybook project type to install?',
|
||||
default: false,
|
||||
},
|
||||
]);
|
||||
|
||||
@ -259,7 +258,10 @@ const projectTypeInquirer = async (options: { yes?: boolean }) => {
|
||||
type: 'list',
|
||||
name: 'manualFramework',
|
||||
message: 'Please choose a project type from the following list:',
|
||||
choices: installableProjectTypes.map((type) => type.toUpperCase()),
|
||||
choices: installableProjectTypes.map((type) => ({
|
||||
title: type,
|
||||
value: type.toUpperCase(),
|
||||
})),
|
||||
},
|
||||
]);
|
||||
return installStorybook(frameworkAnswer.manualFramework, options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user