fix missing prettier file (#20001)
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:
Родитель
27a38dedf1
Коммит
fdce938455
|
@ -197,8 +197,7 @@ babelHelpers.get = function _get(target, property, receiver = target) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return desc.value;
|
return desc.value;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
// ### inherits ###
|
// ### inherits ###
|
||||||
|
|
||||||
|
|
|
@ -354,9 +354,7 @@ function startServerInNewWindow(port) {
|
||||||
const scriptFile = isWindows
|
const scriptFile = isWindows
|
||||||
? 'launchPackager.bat'
|
? 'launchPackager.bat'
|
||||||
: 'launchPackager.command';
|
: 'launchPackager.command';
|
||||||
const packagerEnvFilename = isWindows
|
const packagerEnvFilename = isWindows ? '.packager.bat' : '.packager.env';
|
||||||
? '.packager.bat'
|
|
||||||
: '.packager.env';
|
|
||||||
const portExportContent = isWindows
|
const portExportContent = isWindows
|
||||||
? `set RCT_METRO_PORT=${port}`
|
? `set RCT_METRO_PORT=${port}`
|
||||||
: `export RCT_METRO_PORT=${port}`;
|
: `export RCT_METRO_PORT=${port}`;
|
||||||
|
@ -373,11 +371,14 @@ function startServerInNewWindow(port) {
|
||||||
'..',
|
'..',
|
||||||
'..',
|
'..',
|
||||||
'scripts',
|
'scripts',
|
||||||
packagerEnvFilename
|
packagerEnvFilename,
|
||||||
);
|
);
|
||||||
|
|
||||||
// ensure we overwrite file by passing the 'w' flag
|
// 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 (process.platform === 'darwin') {
|
||||||
if (terminal) {
|
if (terminal) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче