Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

fix(build): replace undefined execSync with execFileSync in prepublish script

diegosouzapwb3d928c593c5
diff --git a/scripts/prepublish.ts b/scripts/prepublish.ts
index a8284710ad..199c76c68d 100644
--- a/scripts/prepublish.ts
+++ b/scripts/prepublish.ts
@@ -133,7 +133,7 @@ if (existsSync(APP_DIR)) {
console.log(" 🏗️ Building Next.js (standalone)...");
const nextBuildBundlerFlag =
process.env.OMNIROUTE_USE_TURBOPACK === "1" ? "--turbopack" : "--webpack";
-execSync(`npx next build ${nextBuildBundlerFlag}`, {
+execFileSync(NPX_BIN, ["next", "build", nextBuildBundlerFlag], {
cwd: ROOT,
stdio: "inherit",
env: {