From 2a35eadaba71f27c1ae3a0623846ad1e8a3384c4 Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Wed, 13 Aug 2025 19:37:09 -0700 Subject: [PATCH] Unbreak RN CI (#53261) Summary: Replace type annotation with comment syntax Changelog: [Internal] Differential Revision: D80231004 --- packages/react-native/cli.js | 2 +- scripts/releases/utils/version-utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/cli.js b/packages/react-native/cli.js index a2d1ff21d6ad..40abd7a1288c 100755 --- a/packages/react-native/cli.js +++ b/packages/react-native/cli.js @@ -33,7 +33,7 @@ function findCommunityCli(startDir /*: string */ = process.cwd()) { // With isolated node_modules (eg pnpm), we won't be able to find // `@react-native-community/cli` starting from the `react-native` directory. // Instead, we should use the project root, which we assume to be the cwd. - const options: {paths?: Array, ...} = {paths: [startDir]}; + const options /*: {paths?: Array, ...} */ = {paths: [startDir]}; const rncli = require.resolve('@react-native-community/cli', options); // $FlowFixMe[unsupported-syntax] return require(rncli); diff --git a/scripts/releases/utils/version-utils.js b/scripts/releases/utils/version-utils.js index 8f42ba7647ba..6d530b5cfa3f 100644 --- a/scripts/releases/utils/version-utils.js +++ b/scripts/releases/utils/version-utils.js @@ -40,7 +40,7 @@ function parseVersion( const match = extractMatchIfValid(versionStr); const [, version, major, minor, patch, prerelease] = match; - const parsedVersion: Version = { + const parsedVersion /*: Version */ = { version, major, minor,