Skip to content

fix: resolve cli-platform-apple from cli-platform-ios path for pnpm#2945

Merged
Saadnajmi merged 1 commit intomicrosoft:mainfrom
Saadnajmi:t3code/restore-reverted-change
Apr 23, 2026
Merged

fix: resolve cli-platform-apple from cli-platform-ios path for pnpm#2945
Saadnajmi merged 1 commit intomicrosoft:mainfrom
Saadnajmi:t3code/restore-reverted-change

Conversation

@Saadnajmi
Copy link
Copy Markdown
Collaborator

Summary

Fixes #2944

Test plan

  • Verified in a pnpm monorepo that cli-platform-apple resolves correctly and the macos platform is registered

🤖 Generated with Claude Code

Re-applies the fix from microsoft#2820 that was inadvertently reverted in microsoft#2917.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Saadnajmi Saadnajmi marked this pull request as ready for review April 23, 2026 14:18
@Saadnajmi Saadnajmi requested a review from a team as a code owner April 23, 2026 14:18
@Saadnajmi Saadnajmi merged commit eb3bccb into microsoft:main Apr 23, 2026
31 checks passed
@Saadnajmi Saadnajmi deleted the t3code/restore-reverted-change branch April 23, 2026 20:13
Saadnajmi added a commit that referenced this pull request Apr 23, 2026
…pnpm (#2946)

## Summary
- Backport of #2945 to `0.81-stable`
- Re-applies the fix from #2820 that was inadvertently reverted in #2917
- In pnpm setups, `@react-native-community/cli-platform-apple` is a
transitive dependency of `cli-platform-ios` and not directly resolvable
from the project root — resolve `cli-platform-ios` first and use its
path as the starting directory

Fixes #2944

## Test plan
- Verified in a pnpm monorepo that `cli-platform-apple` resolves
correctly and the `macos` platform is registered

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

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

@react-native-community/cli-platform-apple is not correctly resolved in pnpm setups regressed in latest 0.81

2 participants