Skip to content

Commit d58075f

Browse files
authored
fix(cli): fix run command crashing without build (#3545)
1 parent 53517cf commit d58075f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/three-baboons-speak.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rnx-kit/cli": patch
3+
---
4+
5+
Fix `run` command crashing if the `build` command was not invoked first

packages/cli/src/run.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Config } from "@react-native-community/cli-types";
2+
import { RNX_FAST_PATH } from "./bin/constants";
23
import { rnxBuildCommand } from "./build";
34
import type { InputParams } from "./build/types";
45
import { runAndroid } from "./run/android";
@@ -24,6 +25,9 @@ export function rnxRun(
2425
}
2526

2627
export const rnxRunCommand = {
28+
// The run command may invoke the build command which currently requires
29+
// loading the full config.
30+
[RNX_FAST_PATH]: false,
2731
name: "rnx-run",
2832
description:
2933
"Build and run your native app for testing in emulator/simulator or on device",

0 commit comments

Comments
 (0)