Skip to content

chore: add Yarn constraints to enforce dependency alignment #2582

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

Merged
merged 4 commits into from
Jul 29, 2025

Conversation

Saadnajmi
Copy link
Collaborator

@Saadnajmi Saadnajmi commented Jul 28, 2025

Summary:

Introduce Yarn Constraints to the repository, that check a few things:

  1. Enforce that on release branches, we have a peer dependency on React Native (used for Hermes version lookup, and aligning other dependencies)
  2. Enforce that all @react-native scoped dependencies use that version.
  3. Enforce that all public @react-native-macos packages align with our react-native-macos version. Some notes..
    • This is effectively only @react-native-macos/virtualized-lists
    • public, because @react-native-macos/nx-release-version is private

Test Plan:

Earlier version of this PR without fixes from yarn constraints --fix properly failed CI:

image

@Saadnajmi Saadnajmi requested a review from a team as a code owner July 28, 2025 23:11
@Saadnajmi Saadnajmi changed the title chore: add Yarn constraints + CI check chore: add Yarn constraints to enforce dependency alignment Jul 28, 2025
@Saadnajmi Saadnajmi merged commit 96ee79d into microsoft:main Jul 29, 2025
21 checks passed
Saadnajmi added a commit that referenced this pull request Jul 29, 2025
@Saadnajmi Saadnajmi deleted the constraint-rn branch July 29, 2025 18:23
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