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,