Skip to content

Commit

Permalink
Suggest "yarn build" rather than "yarn run build" (facebook#1800)
Browse files Browse the repository at this point in the history
* Fix for issue facebook#1798: Suggested 'yarn build' versus 'yarn run build'

* remove 'run' from 'yarn test' command as well

* conditionally show 'run' if Yarn is not available
  • Loading branch information
geoffdavis92 authored and SpaceK33z committed Mar 26, 2017
1 parent 4db7879 commit 0bcd21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-cy-scripts/scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template
console.log(chalk.cyan(' ' + displayedCommand + ' start'));
console.log(' Starts the development server.');
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();
console.log(chalk.cyan(' ' + displayedCommand + ' test'));
console.log(' Starts the test runner.');
console.log();
console.log(chalk.cyan(' ' + displayedCommand + ' run eject'));
console.log(chalk.cyan(` ${displayedCommand} ${useYarn ? '' : 'run '}eject`));
console.log(' Removes this tool and copies build dependencies, configuration files');
console.log(' and scripts into the app directory. If you do this, you can’t go back!');
console.log();
Expand Down

0 comments on commit 0bcd21e

Please sign in to comment.