@@ -118,27 +118,30 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template
118
118
cdpath = appPath ;
119
119
}
120
120
121
+ // Change displayed command to yarn instead of yarnpkg
122
+ var displayedCommand = useYarn ? 'yarn' : 'npm' ;
123
+
121
124
console . log ( ) ;
122
125
console . log ( 'Success! Created ' + appName + ' at ' + appPath ) ;
123
126
console . log ( 'Inside that directory, you can run several commands:' ) ;
124
127
console . log ( ) ;
125
- console . log ( chalk . cyan ( ' ' + command + ' start' ) ) ;
128
+ console . log ( chalk . cyan ( ' ' + displayedCommand + ' start' ) ) ;
126
129
console . log ( ' Starts the development server.' ) ;
127
130
console . log ( ) ;
128
- console . log ( chalk . cyan ( ' ' + command + ' run build' ) ) ;
131
+ console . log ( chalk . cyan ( ' ' + displayedCommand + ' run build' ) ) ;
129
132
console . log ( ' Bundles the app into static files for production.' ) ;
130
133
console . log ( ) ;
131
- console . log ( chalk . cyan ( ' ' + command + ' test' ) ) ;
134
+ console . log ( chalk . cyan ( ' ' + displayedCommand + ' test' ) ) ;
132
135
console . log ( ' Starts the test runner.' ) ;
133
136
console . log ( ) ;
134
- console . log ( chalk . cyan ( ' ' + command + ' run eject' ) ) ;
137
+ console . log ( chalk . cyan ( ' ' + displayedCommand + ' run eject' ) ) ;
135
138
console . log ( ' Removes this tool and copies build dependencies, configuration files' ) ;
136
139
console . log ( ' and scripts into the app directory. If you do this, you can’t go back!' ) ;
137
140
console . log ( ) ;
138
141
console . log ( 'We suggest that you begin by typing:' ) ;
139
142
console . log ( ) ;
140
143
console . log ( chalk . cyan ( ' cd' ) , cdpath ) ;
141
- console . log ( ' ' + chalk . cyan ( command + ' start' ) ) ;
144
+ console . log ( ' ' + chalk . cyan ( displayedCommand + ' start' ) ) ;
142
145
if ( readmeExists ) {
143
146
console . log ( ) ;
144
147
console . log ( chalk . yellow ( 'You had a `README.md` file, we renamed it to `README.old.md`' ) ) ;
0 commit comments