Skip to content

Commit 3be254a

Browse files
huntiemeta-codesync[bot]
authored andcommitted
Drop --version arg from bundle script wrapper (#57644)
Summary: Pull Request resolved: #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
1 parent c1265df commit 3be254a

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)