File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
packages/cli/commands/add Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -591,18 +591,16 @@ export async function runAddCommand(
591591
592592 // print next steps
593593 const nextSteps = selectedAddons
594- . filter ( ( { addon } ) => addon . nextSteps )
595594 . map ( ( { addon } ) => {
595+ if ( ! addon . nextSteps ) return ;
596596 let addonMessage = `${ pc . green ( addon . id ) } :\n` ;
597597
598- const addonNextSteps = addon . nextSteps ! ( {
599- ...workspace ,
600- options : official [ addon . id ] ! ,
601- highlighter
602- } ) ;
598+ const options = official [ addon . id ] ;
599+ const addonNextSteps = addon . nextSteps ( { ...workspace , options, highlighter } ) ;
603600 addonMessage += ` - ${ addonNextSteps . join ( '\n - ' ) } ` ;
604601 return addonMessage ;
605- } ) ;
602+ } )
603+ . filter ( ( msg ) => msg !== undefined ) ;
606604
607605 return { nextSteps, packageManager } ;
608606}
You can’t perform that action at this time.
0 commit comments