Skip to content

fix(0.81): fix yarn constraints failures after release bumps#2909

Merged
Saadnajmi merged 1 commit intomicrosoft:0.81-stablefrom
Saadnajmi:fix-yarn-constraints-private-version-081
Apr 9, 2026
Merged

fix(0.81): fix yarn constraints failures after release bumps#2909
Saadnajmi merged 1 commit intomicrosoft:0.81-stablefrom
Saadnajmi:fix-yarn-constraints-private-version-081

Conversation

@Saadnajmi
Copy link
Copy Markdown
Collaborator

Summary

  • Mark root @react-native-macos/monorepo and @react-native-macos/nx-release-version packages as private: true with a fixed version of 1000.0.0
  • Add enforceReactNativeMacosPrivatePackageVersion yarn constraint to enforce this
  • Decouples internal packages from release versioning — nx release only bumps react-native-macos and @react-native-macos/virtualized-lists, so these internal packages were getting left behind and causing yarn constraints to fail after every release

Test plan

  • yarn constraints passes locally

🤖 Generated with Claude Code

@Saadnajmi Saadnajmi requested a review from a team as a code owner April 9, 2026 22:43
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 9, 2026

⚠️ No Changeset found

Latest commit: a3cb4ce

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Mark root monorepo and nx-release-version packages as private with a
fixed version of 1000.0.0, decoupling them from the release versioning.
Add a yarn constraint to enforce this.

Previously, nx release only bumped packages/react-native and
packages/virtualized-lists, leaving these internal packages behind and
causing yarn constraints to fail.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Saadnajmi Saadnajmi force-pushed the fix-yarn-constraints-private-version-081 branch from 86827dc to a3cb4ce Compare April 9, 2026 22:58
Saadnajmi added a commit that referenced this pull request Apr 9, 2026
…2910)

## Summary
- Update `enforceReactNativeMacosPrivatePackageVersion` constraint to
use `1000.0.0` instead of `0.1.0`, matching the upstream convention for
non-published packages
- Remove the `isMainBranch` guard so the constraint applies consistently
on all branches

See also: #2909 (0.81-stable counterpart)

## Test plan
- [ ] `yarn constraints` passes on main

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@Saadnajmi Saadnajmi merged commit 8acac29 into microsoft:0.81-stable Apr 9, 2026
13 of 14 checks passed
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