Skip to content

Commit 14425e0

Browse files
committed
Avoid calling through npx
1 parent 20ec16f commit 14425e0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/test-app/scripts/run-tests.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@ const env = {
1919
FORCE_COLOR: "1",
2020
};
2121

22-
const metro = spawn("npx", ["react-native", "start", "--no-interactive"], {
22+
const metro = spawn("react-native", ["start", "--no-interactive"], {
2323
cwd,
2424
stdio: "inherit",
2525
outputPrefix: "[metro] ",
2626
env,
2727
});
2828

2929
const build = spawn(
30-
"npx",
30+
"react-native",
3131
[
32-
"react-native",
3332
`run-${platform}`,
3433
"--no-packager",
3534
...(platform === "android" ? ["--active-arch-only"] : []),

0 commit comments

Comments
 (0)