Remove commander dependency from main package (#57645)#57645
Open
huntie wants to merge 2 commits into
Open
Conversation
|
@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D113389458. |
cortinico
approved these changes
Jul 23, 2026
cortinico
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Summary: Remove the unused `--version` option from the standalone bundle script wrapper (unreferenced, separately available via RN CLI). Changelog: [Internal] Reviewed By: cortinico Differential Revision: D113389459
Summary: Simplify the `scripts/bundle.js` wrapper and remove the `commander` dependency from `packages/react-native`. This script is a lightweight wrapper around `npx react-native bundle`, with extra local config arg handling (for now, unchanged / remains located here). **Refactor only** with script behaviour unchanged. **Other changes** - Combined arg parsing is hoisted into `community-cli-plugin` (which does have `commander`) via `unstable_createBundleCommandParser`. - Drop `program` value export (also unused). **Notes** After this change, only `yargs` remains as a direct dependency `react-native` package (`packages/react-native/scripts/`) (a future cleanup). Changelog: [Internal] Reviewed By: cortinico Differential Revision: D113389458
huntie
force-pushed
the
export-D113389458
branch
from
July 23, 2026 12:32
f632f1c to
4444e82
Compare
huntie
added a commit
to huntie/react-native
that referenced
this pull request
Jul 23, 2026
Summary: Simplify the `scripts/bundle.js` wrapper and remove the `commander` dependency from `packages/react-native`. This script is a lightweight wrapper around `npx react-native bundle`, with extra local config arg handling (for now, unchanged / remains located here). **Refactor only** with script behaviour unchanged. **Other changes** - Combined arg parsing is hoisted into `community-cli-plugin` (which does have `commander`) via `unstable_createBundleCommandParser`. - Drop `program` value export (also unused). **Notes** After this change, only `yargs` remains as a direct dependency `react-native` package (`packages/react-native/scripts/`) (a future cleanup). Changelog: [Internal] Reviewed By: cortinico Differential Revision: D113389458
huntie
added a commit
to huntie/react-native
that referenced
this pull request
Jul 23, 2026
Summary: Simplify the `scripts/bundle.js` wrapper and remove the `commander` dependency from `packages/react-native`. This script is a lightweight wrapper around `npx react-native bundle`, with extra local config arg handling (for now, unchanged / remains located here). **Refactor only** with script behaviour unchanged. **Other changes** - Combined arg parsing is hoisted into `community-cli-plugin` (which does have `commander`) via `unstable_createBundleCommandParser`. - Drop `program` value export (also unused). **Notes** After this change, only `yargs` remains as a direct dependency `react-native` package (`packages/react-native/scripts/`) (a future cleanup). Changelog: [Internal] Reviewed By: cortinico Differential Revision: D113389458
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:
Simplify the
scripts/bundle.jswrapper and remove thecommanderdependency frompackages/react-native.This script is a lightweight wrapper around
npx react-native bundle, with extra local config arg handling (for now, unchanged / remains located here).Refactor only with script behaviour unchanged.
Other changes
community-cli-plugin(which does havecommander) viaunstable_createBundleCommandParser.programvalue export (also unused).Notes
After this change, only
yargsremains as a direct dependencyreact-nativepackage (packages/react-native/scripts/) (a future cleanup).Changelog: [Internal]
Reviewed By: cortinico
Differential Revision: D113389458