Skip to content

Commit cb8cdfd

Browse files
chyipinSpaceK33z
authored andcommitted
Use real build path name in build output (facebook#1478)
Use the configured appBuild value in paths.js instead of hard-coding it to 'build'. This is helpful for the ejected case where the appBuild path is changed to another folder name.
1 parent 9fa8314 commit cb8cdfd

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,16 @@ function build(previousSizeMap) {
223223
console.log(' ' + chalk.green('"homepage"') + chalk.cyan(': ') + chalk.green('"http://myname.github.io/myapp"') + chalk.cyan(','));
224224
console.log();
225225
}
226-
console.log('The ' + chalk.cyan('build') + ' folder is ready to be deployed.');
226+
var build = path.relative(process.cwd(), paths.appBuild);
227+
console.log('The ' + chalk.cyan(build) + ' folder is ready to be deployed.');
227228
console.log('You may also serve it locally with a static server:')
228229
console.log();
229230
if (useYarn) {
230231
console.log(' ' + chalk.cyan('yarn') + ' global add pushstate-server');
231232
} else {
232233
console.log(' ' + chalk.cyan('npm') + ' install -g pushstate-server');
233234
}
234-
console.log(' ' + chalk.cyan('pushstate-server') + ' build');
235+
console.log(' ' + chalk.cyan('pushstate-server') + ' ' + build);
235236
console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:9000');
236237
console.log();
237238
}

0 commit comments

Comments
 (0)