Summary:
fix missing prettier file
pass all current ci.
https://github.com/facebook/react-native/pull/19987
 [GENERAL] [INTERNAL] [TOOL] - fix missing prettier file.
Closes https://github.com/facebook/react-native/pull/20001

Differential Revision: D8714374

Pulled By: hramos

fbshipit-source-id: acdcb5d84c56d26c55f6262a0a98aefe786de8cb
This commit is contained in:
gengjiawen 2018-07-02 10:41:17 -07:00 коммит произвёл Facebook Github Bot
Родитель 27a38dedf1
Коммит fdce938455
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -197,8 +197,7 @@ babelHelpers.get = function _get(target, property, receiver = target) {
}
return desc.value;
}
};
// ### inherits ###

Просмотреть файл

@ -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) {