mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
fix(desktop): make expo module build cross-platform
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "EXPO_NONINTERACTIVE=1 expo-module build",
|
||||
"build": "node ./scripts/expo-module-build.cjs",
|
||||
"clean": "expo-module clean",
|
||||
"dev": "expo-module build",
|
||||
"lint": "expo-module lint",
|
||||
|
||||
18
packages/expo-two-way-audio/scripts/expo-module-build.cjs
Normal file
18
packages/expo-two-way-audio/scripts/expo-module-build.cjs
Normal file
@@ -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);
|
||||
Reference in New Issue
Block a user