Commit 052fcdd9 authored by Geoff Davis's avatar Geoff Davis Committed by Dan Abramov
Browse files

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
parent 0a663477
Showing with 6 additions and 2 deletions
+6 -2
...@@ -149,13 +149,17 @@ module.exports = function( ...@@ -149,13 +149,17 @@ module.exports = function(
console.log(chalk.cyan(` ${displayedCommand} start`)); console.log(chalk.cyan(` ${displayedCommand} start`));
console.log(' Starts the development server.'); console.log(' Starts the development server.');
console.log(); console.log();
console.log(chalk.cyan(` ${displayedCommand} run build`)); console.log(
chalk.cyan(` ${displayedCommand} ${useYarn ? '' : 'run '}build`)
);
console.log(' Bundles the app into static files for production.'); console.log(' Bundles the app into static files for production.');
console.log(); console.log();
console.log(chalk.cyan(` ${displayedCommand} test`)); console.log(chalk.cyan(` ${displayedCommand} test`));
console.log(' Starts the test runner.'); console.log(' Starts the test runner.');
console.log(); console.log();
console.log(chalk.cyan(` ${displayedCommand} run eject`)); console.log(
chalk.cyan(` ${displayedCommand} ${useYarn ? '' : 'run '}eject`)
);
console.log( console.log(
' Removes this tool and copies build dependencies, configuration files' ' Removes this tool and copies build dependencies, configuration files'
); );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment