Fix import in bump-all-updated-packages, add Flow (#43106)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43106 Missed import in untyped, untested script during recent file move. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D53940160 fbshipit-source-id: ec86c5881a2f34d992538c713f808c8d5634ba16
This commit is contained in:
Родитель
69977d05f0
Коммит
1b504382c1
|
@ -4,12 +4,17 @@
|
|||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow
|
||||
* @format
|
||||
* @oncall react_native
|
||||
*/
|
||||
|
||||
const {getPackageVersionStrByTag} = require('../../npm-utils');
|
||||
const {
|
||||
isReleaseBranch,
|
||||
parseVersion,
|
||||
} = require('../../releases/utils/version-utils');
|
||||
const {getBranchName} = require('../../scm-utils');
|
||||
const {isReleaseBranch, parseVersion} = require('../../version-utils');
|
||||
const alignPackageVersions = require('../align-package-versions');
|
||||
const checkForGitChanges = require('../check-for-git-changes');
|
||||
const {
|
||||
|
@ -31,7 +36,11 @@ const {echo, exec, exit} = require('shelljs');
|
|||
const ROOT_LOCATION = path.join(__dirname, '..', '..', '..');
|
||||
|
||||
const buildExecutor =
|
||||
(packageAbsolutePath, packageRelativePathFromRoot, packageManifest) =>
|
||||
(
|
||||
packageAbsolutePath /*: string */,
|
||||
packageRelativePathFromRoot /*: string */,
|
||||
packageManifest /*: $FlowFixMe */,
|
||||
) =>
|
||||
async () => {
|
||||
const {name: packageName} = packageManifest;
|
||||
if (packageManifest.private) {
|
||||
|
@ -247,4 +256,7 @@ const main = async () => {
|
|||
exit(0);
|
||||
};
|
||||
|
||||
main();
|
||||
if (require.main === module) {
|
||||
// eslint-disable-next-line no-void
|
||||
void main();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче