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