Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Pin exact versions of RN CLI dependencies #1893

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

huntie
Copy link
Collaborator

@huntie huntie commented Mar 28, 2023

Summary:

In the React Native repo, we are pinning all versions of @react-native-community/cli dependencies in order to simplify the possible dependency trees of the framework.

Unfortunately, we recently had our version of @react-native-community/cli pinned to "11.0.0-alpha.2", thinking this was sufficient. However (in contexts without a lockfile, such as the RN template) cross-dependencies of packages in this repo using caret versions (e.g. ^11.0.0) meant that adjacent packages could pre-emptively pull in new versions. Therefore, on Friday we unexpectedly received a bump of @react-native-community/cli-plugin-metro at 11.0.0 in our 0.72-rc branch, which broke the RC (and main branch CI).

Relates to:

packages/cli/package.json Outdated Show resolved Hide resolved
Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let's do it to be compatible with how RN consumes the CLI

@huntie huntie changed the title RFC: Policy - Pin exact versions of RN CLI dependencies fix: Pin exact versions of RN CLI dependencies Mar 28, 2023
@huntie huntie marked this pull request as ready for review March 28, 2023 17:13
@huntie huntie requested a review from adamTrz as a code owner March 28, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants