Skip to content

Commit fdce938

Browse files
gengjiawenfacebook-github-bot
authored andcommitted
fix missing prettier file (#20001)
Summary: fix missing prettier file pass all current ci. #19987 [GENERAL] [INTERNAL] [TOOL] - fix missing prettier file. Closes #20001 Differential Revision: D8714374 Pulled By: hramos fbshipit-source-id: acdcb5d84c56d26c55f6262a0a98aefe786de8cb
1 parent 27a38de commit fdce938

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Libraries/polyfills/babelHelpers.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ babelHelpers.get = function _get(target, property, receiver = target) {
197197
}
198198

199199
return desc.value;
200-
}
201-
200+
};
202201

203202
// ### inherits ###
204203

local-cli/runAndroid/runAndroid.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,7 @@ function startServerInNewWindow(port) {
354354
const scriptFile = isWindows
355355
? 'launchPackager.bat'
356356
: 'launchPackager.command';
357-
const packagerEnvFilename = isWindows
358-
? '.packager.bat'
359-
: '.packager.env';
357+
const packagerEnvFilename = isWindows ? '.packager.bat' : '.packager.env';
360358
const portExportContent = isWindows
361359
? `set RCT_METRO_PORT=${port}`
362360
: `export RCT_METRO_PORT=${port}`;
@@ -373,11 +371,14 @@ function startServerInNewWindow(port) {
373371
'..',
374372
'..',
375373
'scripts',
376-
packagerEnvFilename
374+
packagerEnvFilename,
377375
);
378-
376+
379377
// ensure we overwrite file by passing the 'w' flag
380-
fs.writeFileSync(packagerEnvFile, portExportContent, {encoding: 'utf8', flag: 'w'});
378+
fs.writeFileSync(packagerEnvFile, portExportContent, {
379+
encoding: 'utf8',
380+
flag: 'w',
381+
});
381382

382383
if (process.platform === 'darwin') {
383384
if (terminal) {

0 commit comments

Comments
 (0)