Skip to content

Commit bc9aca8

Browse files
geoffdavis92Timer
authored andcommitted
Suggest "yarn build" rather than "yarn run build" (#1800)
* Fix for issue #1798: Suggested 'yarn build' versus 'yarn run build' * remove 'run' from 'yarn test' command as well * conditionally show 'run' if Yarn is not available
1 parent 1b47336 commit bc9aca8

File tree

1 file changed

+2
-2
lines changed
  • packages/react-scripts/scripts

1 file changed

+2
-2
lines changed

packages/react-scripts/scripts/init.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template
127127
console.log(chalk.cyan(' ' + displayedCommand + ' start'));
128128
console.log(' Starts the development server.');
129129
console.log();
130-
console.log(chalk.cyan(' ' + displayedCommand + ' run build'));
130+
console.log(chalk.cyan(` ${displayedCommand} ${useYarn ? '' : 'run '}build`));
131131
console.log(' Bundles the app into static files for production.');
132132
console.log();
133133
console.log(chalk.cyan(' ' + displayedCommand + ' test'));
134134
console.log(' Starts the test runner.');
135135
console.log();
136-
console.log(chalk.cyan(' ' + displayedCommand + ' run eject'));
136+
console.log(chalk.cyan(` ${displayedCommand} ${useYarn ? '' : 'run '}eject`));
137137
console.log(' Removes this tool and copies build dependencies, configuration files');
138138
console.log(' and scripts into the app directory. If you do this, you can’t go back!');
139139
console.log();

0 commit comments

Comments
 (0)