mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Drop --version arg from bundle script wrapper (#57644)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57644 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 fbshipit-source-id: c07d46eaef614bca03bf97199cf65c4d45be6978
This commit is contained in:
1 parent
c1265dfe9d
commit
3be254a8af
1 file changed
-8
-8
@@ -13,19 +13,11 @@
|
||||
const {bundleCommand: bc} = require('@react-native/community-cli-plugin');
|
||||
const commander = require('commander');
|
||||
const {execSync} = require('node:child_process');
|
||||
const {readFileSync} = require('node:fs');
|
||||
const path = require('node:path');
|
||||
|
||||
// Commander 12.0.0 changes from the global to named export
|
||||
// $FlowFixMe[signature-verification-failure]
|
||||
const program = commander.program ?? commander;
|
||||
|
||||
program.version(
|
||||
JSON.parse(
|
||||
readFileSync(path.resolve(__dirname, '..', 'package.json'), 'utf8'),
|
||||
).version,
|
||||
);
|
||||
|
||||
program
|
||||
.name(bc.name)
|
||||
.description(bc.description ?? '')
|
||||
|
||||
Reference in new issue
Block a user