Skip to content

Commit c8f16a3

Browse files
committed
fix: spawn CLI directly without using Node
1 parent 941e35c commit c8f16a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/react-native-builder-bob/src/utils/runRNCCli.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { type SpawnOptions } from 'node:child_process';
2-
import { spawn } from './spawn';
1+
import assert from 'node:assert';
2+
import type { SpawnOptions } from 'node:child_process';
33
import path from 'node:path';
44
import fs from 'fs-extra';
5-
import assert from 'node:assert';
5+
import { spawn } from './spawn';
66

77
// This is a special case for calling bob from the XCode scripts
88
// XCode scripts don't have the node binary properly set
@@ -27,7 +27,7 @@ export async function runRNCCli(
2727
rncCliBinaryName
2828
);
2929

30-
return await spawn(NODE_BINARY, [RNC_CLI_BINARY_PATH, ...args], options);
30+
return await spawn(RNC_CLI_BINARY_PATH, [...args], options);
3131
}
3232

3333
async function getCliBinaryName(): Promise<string> {

0 commit comments

Comments
 (0)