@@ -118,27 +118,30 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template
118118 cdpath = appPath ;
119119 }
120120
121+ // Change displayed command to yarn instead of yarnpkg
122+ var displayedCommand = useYarn ? 'yarn' : 'npm' ;
123+
121124 console . log ( ) ;
122125 console . log ( 'Success! Created ' + appName + ' at ' + appPath ) ;
123126 console . log ( 'Inside that directory, you can run several commands:' ) ;
124127 console . log ( ) ;
125- console . log ( chalk . cyan ( ' ' + command + ' start' ) ) ;
128+ console . log ( chalk . cyan ( ' ' + displayedCommand + ' start' ) ) ;
126129 console . log ( ' Starts the development server.' ) ;
127130 console . log ( ) ;
128- console . log ( chalk . cyan ( ' ' + command + ' run build' ) ) ;
131+ console . log ( chalk . cyan ( ' ' + displayedCommand + ' run build' ) ) ;
129132 console . log ( ' Bundles the app into static files for production.' ) ;
130133 console . log ( ) ;
131- console . log ( chalk . cyan ( ' ' + command + ' test' ) ) ;
134+ console . log ( chalk . cyan ( ' ' + displayedCommand + ' test' ) ) ;
132135 console . log ( ' Starts the test runner.' ) ;
133136 console . log ( ) ;
134- console . log ( chalk . cyan ( ' ' + command + ' run eject' ) ) ;
137+ console . log ( chalk . cyan ( ' ' + displayedCommand + ' run eject' ) ) ;
135138 console . log ( ' Removes this tool and copies build dependencies, configuration files' ) ;
136139 console . log ( ' and scripts into the app directory. If you do this, you can’t go back!' ) ;
137140 console . log ( ) ;
138141 console . log ( 'We suggest that you begin by typing:' ) ;
139142 console . log ( ) ;
140143 console . log ( chalk . cyan ( ' cd' ) , cdpath ) ;
141- console . log ( ' ' + chalk . cyan ( command + ' start' ) ) ;
144+ console . log ( ' ' + chalk . cyan ( displayedCommand + ' start' ) ) ;
142145 if ( readmeExists ) {
143146 console . log ( ) ;
144147 console . log ( chalk . yellow ( 'You had a `README.md` file, we renamed it to `README.old.md`' ) ) ;
0 commit comments