From 70908edfb293e27f67f25e00c054b3f4c42ad626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwas=CC=81niewski?= Date: Wed, 20 Dec 2023 15:02:11 +0100 Subject: [PATCH] feat: merge buildOptions to runOptions --- .../cli-platform-apple/src/commands/runCommand/runOptions.ts | 2 ++ packages/cli-platform-ios/src/commands/runIOS/index.ts | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli-platform-apple/src/commands/runCommand/runOptions.ts b/packages/cli-platform-apple/src/commands/runCommand/runOptions.ts index f641aaaf4..6d5e9e278 100644 --- a/packages/cli-platform-apple/src/commands/runCommand/runOptions.ts +++ b/packages/cli-platform-apple/src/commands/runCommand/runOptions.ts @@ -1,4 +1,5 @@ import {getDefaultUserTerminal} from '@react-native-community/cli-tools'; +import {buildOptions} from '../buildCommand/buildOptions'; export const runOptions = [ { @@ -43,4 +44,5 @@ export const runOptions = [ name: '--udid ', description: 'Explicitly set the device to use by UDID', }, + ...buildOptions, ]; diff --git a/packages/cli-platform-ios/src/commands/runIOS/index.ts b/packages/cli-platform-ios/src/commands/runIOS/index.ts index 7b399e247..82f32056c 100644 --- a/packages/cli-platform-ios/src/commands/runIOS/index.ts +++ b/packages/cli-platform-ios/src/commands/runIOS/index.ts @@ -7,7 +7,6 @@ */ import { - buildOptions, createRun, runOptions, } from '@react-native-community/cli-platform-apple'; @@ -30,5 +29,5 @@ export default { cmd: 'npx react-native run-ios --simulator "Apple TV" --scheme "helloworld-tvOS"', }, ], - options: [...buildOptions, ...runOptions], + options: runOptions, };