diff --git a/Libraries/polyfills/babelHelpers.js b/Libraries/polyfills/babelHelpers.js index 991b4fbfbdb216..f831deaa842fac 100644 --- a/Libraries/polyfills/babelHelpers.js +++ b/Libraries/polyfills/babelHelpers.js @@ -197,8 +197,7 @@ babelHelpers.get = function _get(target, property, receiver = target) { } return desc.value; -} - +}; // ### inherits ### diff --git a/local-cli/runAndroid/runAndroid.js b/local-cli/runAndroid/runAndroid.js index cd21b6ac29cfd7..6835c97bcb0bf0 100644 --- a/local-cli/runAndroid/runAndroid.js +++ b/local-cli/runAndroid/runAndroid.js @@ -354,9 +354,7 @@ function startServerInNewWindow(port) { const scriptFile = isWindows ? 'launchPackager.bat' : 'launchPackager.command'; - const packagerEnvFilename = isWindows - ? '.packager.bat' - : '.packager.env'; + const packagerEnvFilename = isWindows ? '.packager.bat' : '.packager.env'; const portExportContent = isWindows ? `set RCT_METRO_PORT=${port}` : `export RCT_METRO_PORT=${port}`; @@ -373,11 +371,14 @@ function startServerInNewWindow(port) { '..', '..', 'scripts', - packagerEnvFilename + packagerEnvFilename, ); - + // ensure we overwrite file by passing the 'w' flag - fs.writeFileSync(packagerEnvFile, portExportContent, {encoding: 'utf8', flag: 'w'}); + fs.writeFileSync(packagerEnvFile, portExportContent, { + encoding: 'utf8', + flag: 'w', + }); if (process.platform === 'darwin') { if (terminal) {