From 9c38daf2efb5c4348d6f3673f0b1cecf60ea7806 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Wed, 4 Jun 2025 12:03:52 -0700 Subject: [PATCH] RN: Flowify `scripts` (#51780) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51780 Adds `flow` to the remaining files that are lacking it (or `noflow`) in the `scripts` directory. This also fixes what I believe to be a typo in one of the files. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D75883851 fbshipit-source-id: 928b7a12a08269b6643379d46de888f2c61dcb29 --- scripts/__tests__/npm-utils-test.js | 1 + scripts/__tests__/scm-utils-test.js | 3 ++- .../__tests__/__fixtures__/remove-new-arch-flags-fixture.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/__tests__/npm-utils-test.js b/scripts/__tests__/npm-utils-test.js index 18787db2f82..ce52428a159 100644 --- a/scripts/__tests__/npm-utils-test.js +++ b/scripts/__tests__/npm-utils-test.js @@ -4,6 +4,7 @@ * 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 */ diff --git a/scripts/__tests__/scm-utils-test.js b/scripts/__tests__/scm-utils-test.js index 83b553cd3e7..64bbacf1597 100644 --- a/scripts/__tests__/scm-utils-test.js +++ b/scripts/__tests__/scm-utils-test.js @@ -4,6 +4,7 @@ * 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 */ @@ -23,7 +24,7 @@ jest console.log(message); }, exit: exitCode => { - exit(exitCode); + process.exit(exitCode); }, cp: cpMock, })) diff --git a/scripts/releases/__tests__/__fixtures__/remove-new-arch-flags-fixture.js b/scripts/releases/__tests__/__fixtures__/remove-new-arch-flags-fixture.js index fbce3795f87..2044ec3b204 100644 --- a/scripts/releases/__tests__/__fixtures__/remove-new-arch-flags-fixture.js +++ b/scripts/releases/__tests__/__fixtures__/remove-new-arch-flags-fixture.js @@ -4,6 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * + * @flow strict * @format */