Skip to content

Commit 7326eb6

Browse files
committed
Revert parallel builds
This seemed to be causing issues on Windows
1 parent f52dadf commit 7326eb6

File tree

3 files changed

+10
-26
lines changed

3 files changed

+10
-26
lines changed

package-lock.json

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/node-tests/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
"bootstrap": "node --run copy-tests && node --run gyp-to-cmake && node --run build-tests && node --run bundle && node --run generate-entrypoint"
2020
},
2121
"devDependencies": {
22-
"bufout": "^0.3.2",
23-
"cmake-js": "^7.3.1",
2422
"cmake-rn": "*",
2523
"gyp-to-cmake": "*",
2624
"prebuildify": "^6.0.1",
Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
import path from "node:path";
2-
3-
import { spawn, SpawnFailure } from "bufout";
2+
import { spawnSync } from "node:child_process";
43

54
import { findCMakeProjects } from "./utils.mjs";
65

76
const rootPath = path.join(import.meta.dirname, "..");
87
const projectPaths = findCMakeProjects();
98

10-
await Promise.all(
11-
projectPaths.map(async (projectPath) => {
12-
console.log(
13-
`Running "cmake-rn" in ${path.relative(
14-
rootPath,
15-
projectPath
16-
)} to build for React Native`
17-
);
18-
await spawn("cmake-rn", [], { cwd: projectPath, outputMode: "buffered" });
19-
})
20-
).catch((err) => {
21-
process.exitCode = 1;
22-
if (err instanceof SpawnFailure) {
23-
err.flushOutput("both");
24-
} else if (err instanceof Error) {
25-
console.error(err.message);
26-
} else {
27-
console.error(err);
28-
}
29-
});
9+
for (const projectPath of projectPaths) {
10+
console.log(
11+
`Running "cmake-rn" in ${path.relative(
12+
rootPath,
13+
projectPath
14+
)} to build for React Native`
15+
);
16+
spawnSync("cmake-rn", [], { cwd: projectPath, stdio: "inherit" });
17+
}

0 commit comments

Comments
 (0)