mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
de2f9c0f77
Summary: this PR fixes a few small ESLint issues that were showing up under PR diffs. ## Changelog: [INTERNAL] [FIXED] - Fix various ESLint issues Pull Request resolved: https://github.com/facebook/react-native/pull/46379 Test Plan: ran JS tests + linter; all passing Reviewed By: cipolleschi Differential Revision: D62385788 Pulled By: NickGerleman fbshipit-source-id: b33d7ade4696bbaed2ac1a3fc2e0b3dff9bb04b7
46 lines
1.0 KiB
JavaScript
46 lines
1.0 KiB
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict-local
|
|
* @format
|
|
* @oncall react_native
|
|
*/
|
|
|
|
/*::
|
|
import {Command} from 'commander';
|
|
*/
|
|
|
|
const {patchCoreCLIUtilsPackageJSON} = require('./scripts/monorepo');
|
|
|
|
function injectCoreCLIUtilsRuntimePatch() {
|
|
patchCoreCLIUtilsPackageJSON(true);
|
|
const cleared = {
|
|
status: false,
|
|
};
|
|
['exit', 'SIGUSR1', 'SIGUSR2', 'uncaughtException'].forEach(event => {
|
|
if (cleared.status) {
|
|
return;
|
|
}
|
|
patchCoreCLIUtilsPackageJSON(false);
|
|
cleared.status = true;
|
|
});
|
|
}
|
|
|
|
if (process.env.BUILD_EXCLUDE_BABEL_REGISTER == null) {
|
|
// $FlowFixMe[cannot-resolve-module]
|
|
require('../../scripts/build/babel-register').registerForMonorepo();
|
|
}
|
|
|
|
injectCoreCLIUtilsRuntimePatch();
|
|
|
|
const program /*: Command */ = require('./cli.flow.js').default;
|
|
|
|
if (require.main === module) {
|
|
program.parse();
|
|
}
|
|
|
|
module.exports = program;
|