From e7f3166db04c49eef75f6eeaeca205a01ac79a0e Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Thu, 23 Jul 2026 04:25:54 -0700 Subject: [PATCH] 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 --- packages/react-native/scripts/bundle.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/react-native/scripts/bundle.js b/packages/react-native/scripts/bundle.js index 8feb593cf3a6..225c006b486c 100644 --- a/packages/react-native/scripts/bundle.js +++ b/packages/react-native/scripts/bundle.js @@ -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 ?? '')