fix(desktop): simplify expo module build to plain tsc

Replace the cross-platform wrapper script with a direct tsc call.
expo-module build is just tsc + conditional --watch; tsc alone is
one-shot and cross-platform without needing env var hacks.
This commit is contained in:
Mohamed Boudra
2026-03-22 18:19:50 +07:00
parent 43a1f46047
commit d705d68f2f
2 changed files with 1 additions and 19 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "node ./scripts/expo-module-build.cjs",
"build": "tsc",
"clean": "expo-module clean",
"dev": "expo-module build",
"lint": "expo-module lint",
@@ -1,18 +0,0 @@
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);