fix(desktop): make expo module build cross-platform

This commit is contained in:
Mohamed Boudra
2026-03-22 18:02:26 +07:00
parent 1572c95b4d
commit 1911946ed1
2 changed files with 19 additions and 1 deletions
@@ -0,0 +1,18 @@
const path = require("node:path");
const { spawnSync } = require("node:child_process");
const command = process.platform === "win32" ? "npx.cmd" : "npx";
const result = spawnSync(command, ["expo-module", "build"], {
stdio: "inherit",
cwd: path.resolve(__dirname, ".."),
env: {
...process.env,
EXPO_NONINTERACTIVE: "1",
},
});
if (result.error) {
throw result.error;
}
process.exit(result.status ?? 1);