Skip to content

Commit e7f3166

Browse files
huntiefacebook-github-bot
authored andcommitted
Drop --version arg from bundle script wrapper
Summary: Remove the unused `--version` option from the standalone bundle script wrapper (unreferenced, separately available via RN CLI). Changelog: [Internal] Differential Revision: D113389459
1 parent 50a35db commit e7f3166

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

packages/react-native/scripts/bundle.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,11 @@
1313
const {bundleCommand: bc} = require('@react-native/community-cli-plugin');
1414
const commander = require('commander');
1515
const {execSync} = require('node:child_process');
16-
const {readFileSync} = require('node:fs');
17-
const path = require('node:path');
1816

1917
// Commander 12.0.0 changes from the global to named export
2018
// $FlowFixMe[signature-verification-failure]
2119
const program = commander.program ?? commander;
2220

23-
program.version(
24-
JSON.parse(
25-
readFileSync(path.resolve(__dirname, '..', 'package.json'), 'utf8'),
26-
).version,
27-
);
28-
2921
program
3022
.name(bc.name)
3123
.description(bc.description ?? '')

0 commit comments

Comments
 (0)