Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-native/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>, ...} = {paths: [startDir]};
const options /*: {paths?: Array<string>, ...} */ = {paths: [startDir]};
const rncli = require.resolve('@react-native-community/cli', options);
// $FlowFixMe[unsupported-syntax]
return require(rncli);
Expand Down
2 changes: 1 addition & 1 deletion scripts/releases/utils/version-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading