File tree 2 files changed +6
-6
lines changed
packages/react-scripts/scripts
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,11 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
60
60
// browserslist defaults.
61
61
const { checkBrowsers } = require ( 'react-dev-utils/browsersHelper' ) ;
62
62
checkBrowsers ( paths . appPath )
63
- . then ( ( ) =>
63
+ . then ( ( ) => {
64
64
// First, read the current file sizes in build directory.
65
65
// This lets us display how much they changed later.
66
- measureFileSizesBeforeBuild ( paths . appBuild )
67
- )
66
+ return measureFileSizesBeforeBuild ( paths . appBuild ) ;
67
+ } )
68
68
. then ( previousFileSizes => {
69
69
// Remove all content but keep the directory so that
70
70
// if you're in it, you don't end up in Trash
Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ const HOST = process.env.HOST || '0.0.0.0';
62
62
// browserslist defaults.
63
63
const { checkBrowsers } = require ( 'react-dev-utils/browsersHelper' ) ;
64
64
checkBrowsers ( paths . appPath )
65
- . then ( ( ) =>
65
+ . then ( ( ) => {
66
66
// We attempt to use the default port but if it is busy, we offer the user to
67
67
// run on a different port. `choosePort()` Promise resolves to the next free port.
68
- choosePort ( HOST , DEFAULT_PORT )
69
- )
68
+ return choosePort ( HOST , DEFAULT_PORT ) ;
69
+ } )
70
70
. then ( port => {
71
71
if ( port == null ) {
72
72
// We have not found a port.
You can’t perform that action at this time.
0 commit comments