Skip to content

Commit 0bcd21e

Browse files
geoffdavis92SpaceK33z
authored andcommitted
Suggest "yarn build" rather than "yarn run build" (facebook#1800)
* 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
1 parent 4db7879 commit 0bcd21e

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

packages/react-cy-scripts/scripts/init.js

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

0 commit comments

Comments
 (0)