fix: resolve cli-platform-apple from cli-platform-ios path for pnpm#2945
Merged
Saadnajmi merged 1 commit intomicrosoft:mainfrom Apr 23, 2026
Merged
Conversation
Re-applies the fix from microsoft#2820 that was inadvertently reverted in microsoft#2917. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
acoates-ms
approved these changes
Apr 23, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@react-native-community/cli-platform-applenot being resolved correctly #2820 that was inadvertently reverted in fix(ci): make react-native-macos-init job pass #2917@react-native-community/cli-platform-appleis a transitive dependency ofcli-platform-iosand not directly resolvable from the project root — resolvecli-platform-iosfirst and use its path as the starting directoryFixes #2944
Test plan
cli-platform-appleresolves correctly and themacosplatform is registered🤖 Generated with Claude Code