Repository navigation
fix(cli): bump commander to 12.x - #4458
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot CLI created this pull request from a session on behalf of
Tommy Nguyen (tido64)
November 13, 2026 09:14
Member
Agent evals✅ Passed (19)
Warning This audited 64b1994, not the head of the pull request (d337c11). Push the changes, or audit the session that made them, and run Audited 64b1994. This check only reports. |
Contributor
Agent evals❌ 1 failed · ✅ 18 passed ❌ Failed (1)
✅ Passed (18)
Audited a253035. This check only reports. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Tommy Nguyen (tido64)
marked this pull request as ready for review
November 13, 2026 09:32
Tommy Nguyen (tido64)
requested review from
Jason Morse (JasonVMo),
Saad Najmi (Saadnajmi),
acoates-ms and
Tommy Nguyen (tido64)
as code owners
November 13, 2026 09:32
Tommy Nguyen (tido64)
enabled auto-merge (squash)
November 13, 2026 09:32
Contributor
|
Should we push an upstream bump for react-native here too? |
Saad Najmi (Saadnajmi)
approved these changes
Nov 13, 2026
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.
Description
Upgrades
commanderin@rnx-kit/clito 12.x so it shares the same copy as React Native.Why 12.x and not the latest (15.x)?
react-native(0.81 through 0.89),react-native-macosandreact-native-windowsall depend oncommander@^12. Moving the CLI to 12 removes its separate copy of 11, which takes the repo from five versions of commander to four. Moving to 13, 14 or 15 would just swap 11 for a different copy only the CLI uses, so the count wouldn't drop. 15 is also ESM-only. 12 needs Node 18 or newer, so the CLI's minimum Node version doesn't change.What breaks in commander 12, and what it means for users:
rnx-clicombines React Native CLI commands with a few extra commands of its own. If a project or dependency defined a command with the same name, commander used to ignore it silently. Now it would crash everyrnx-clicall, so the CLI deduplicates the combined list first. As before, the first command with a given name wins.react-native(which uses commander 9) but fail underrnx-cli. We don't know of any affected commands.storeOptionsAsPropertiesandpassThroughOptionschecks, exit codes of spawned subcommands) don't apply to howrnx-cliuses commander.This PR also adds a guideline to
AGENTS.mdon writing PR descriptions: explain the reasoning and impact, and skip details that can be inferred from the diff.Test plan
yarn build-scope @rnx-kit/cliandyarn testinpackages/clipass.packages/test-app, runrnx-cliwith--help,test --help,bundle --help,doctor --helpandconfig. All behave as before, and Jest's options (including-h/--help) don't conflict with commander's built-in help.