Skip to content

Commit 9688e2f

Browse files
committed
Fixed bug when calling cmake-rn in node-tests
1 parent 03f94d4 commit 9688e2f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/node-tests/scripts/build-tests.mts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from "node:path";
2-
import { spawnSync } from "node:child_process";
2+
import { execSync } from "node:child_process";
33

44
import { findCMakeProjects } from "./utils.mjs";
55

@@ -13,5 +13,8 @@ for (const projectPath of projectPaths) {
1313
projectPath,
1414
)} to build for React Native`,
1515
);
16-
spawnSync("cmake-rn --cmake-js", [], { cwd: projectPath, stdio: "inherit" });
16+
execSync("cmake-rn --cmake-js", {
17+
cwd: projectPath,
18+
stdio: "inherit",
19+
});
1720
}

0 commit comments

Comments
 (0)