Skip to content

chore: add Yarn constraints to enforce dependency alignment#2582

Merged
Saadnajmi merged 4 commits into
microsoft:mainfrom
Saadnajmi:constraint-rn
Jul 29, 2025
Merged

chore: add Yarn constraints to enforce dependency alignment#2582
Saadnajmi merged 4 commits into
microsoft:mainfrom
Saadnajmi:constraint-rn

Conversation

@Saadnajmi
Copy link
Copy Markdown
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
Comment thread packages/nx-release-version/package.json Outdated
@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