Skip to content

Commit 91c64cc

Browse files
authored
feat: merge buildOptions to runOptions (#2222)
1 parent 99646d7 commit 91c64cc

File tree

2 files changed

+3
-2
lines changed
  • packages

2 files changed

+3
-2
lines changed

packages/cli-platform-apple/src/commands/runCommand/runOptions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {getDefaultUserTerminal} from '@react-native-community/cli-tools';
2+
import {buildOptions} from '../buildCommand/buildOptions';
23

34
export const runOptions = [
45
{
@@ -43,4 +44,5 @@ export const runOptions = [
4344
name: '--udid <string>',
4445
description: 'Explicitly set the device to use by UDID',
4546
},
47+
...buildOptions,
4648
];

packages/cli-platform-ios/src/commands/runIOS/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
import {
10-
buildOptions,
1110
createRun,
1211
runOptions,
1312
} from '@react-native-community/cli-platform-apple';
@@ -30,5 +29,5 @@ export default {
3029
cmd: 'npx react-native run-ios --simulator "Apple TV" --scheme "helloworld-tvOS"',
3130
},
3231
],
33-
options: [...buildOptions, ...runOptions],
32+
options: runOptions,
3433
};

0 commit comments

Comments
 (0)