openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
9 lines (8 loc) • 323 B
JavaScript
import path from "node:path";
//#region src/cli/update-cli/node-runner.ts
function resolveNodeRunner() {
const base = path.basename(process.execPath).trim().toLowerCase();
return process.versions.bun || base === "node" || base === "node.exe" ? process.execPath : "node";
}
//#endregion
export { resolveNodeRunner as t };