@@ -209,16 +209,12 @@ async function init() {
209209 features ?: string [ ]
210210 } = { }
211211
212- console . log ( )
213- console . log (
214- process . stdout . isTTY && process . stdout . getColorDepth ( ) > 8
215- ? banners . gradientBanner
216- : banners . defaultBanner ,
217- )
218- console . log ( )
219-
220212 try {
221- intro ( )
213+ intro (
214+ process . stdout . isTTY && process . stdout . getColorDepth ( ) > 8
215+ ? banners . gradientBanner
216+ : banners . defaultBanner ,
217+ )
222218
223219 if ( ! targetDir ) {
224220 const projectNameInput = await text ( {
@@ -671,19 +667,18 @@ async function init() {
671667 } ) ,
672668 )
673669
674- outro ( `${ language . infos . done } \n` )
670+ let outroMessage = `${ language . infos . done } \n\n`
675671 if ( root !== cwd ) {
676672 const cdProjectName = path . relative ( cwd , root )
677- console . log (
678- ` ${ bold ( green ( `cd ${ cdProjectName . includes ( ' ' ) ? `"${ cdProjectName } "` : cdProjectName } ` ) ) } ` ,
679- )
673+ outroMessage += ` ${ bold ( green ( `cd ${ cdProjectName . includes ( ' ' ) ? `"${ cdProjectName } "` : cdProjectName } ` ) ) } \n`
680674 }
681- console . log ( ` ${ bold ( green ( getCommand ( packageManager , 'install' ) ) ) } ` )
675+ outroMessage += ` ${bold ( green ( getCommand ( packageManager , 'install' ) ) ) } \n`
682676 if ( needsPrettier ) {
683- console . log ( ` ${ bold ( green ( getCommand ( packageManager , 'format' ) ) ) } ` )
677+ outroMessage += ` ${bold ( green ( getCommand ( packageManager , 'format' ) ) ) } \n`
684678 }
685- console . log ( ` ${ bold ( green ( getCommand ( packageManager , 'dev' ) ) ) } ` )
686- console . log ( )
679+ outroMessage += ` ${bold ( green ( getCommand ( packageManager , 'dev' ) ) ) } `
680+
681+ outro ( outroMessage )
687682}
688683
689684init ( ) . catch ( ( e ) => {
0 commit comments