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