everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
12 lines (11 loc) • 378 B
JavaScript
//#region src/cli/exit-codes.ts
function exitCodeFor(result) {
if (!result) return 0;
if (typeof result.code === "number") return result.code === 0 ? 0 : 1;
if (result.status === "error") return 1;
if (typeof result.error === "string" && result.error.length > 0) return 1;
return 0;
}
//#endregion
exports.exitCodeFor = exitCodeFor;
//# sourceMappingURL=exit-codes.cjs.map