UNPKG

everything-dev

Version:

A consolidated product package for building Module Federation apps with oRPC APIs.

27 lines (25 loc) • 1.07 kB
import { colors, icons } from "../../utils/theme.mjs"; //#region src/cli/commands/lock.ts const lockRenderers = { lock: async (result, _ctx) => { console.log(); if (result.status === "error") { console.error(colors.error(`${icons.err} ${result.error ?? "bos lock failed"}`)); return; } if (result.status === "drift") { console.error(colors.error(`${icons.err} composition lockfile drift (${result.path})`)); for (const line of result.drift ?? []) console.error(` ${line}`); console.error(colors.dim(" bos lock --check refuses to pass until the lockfile is refreshed")); return; } if (result.status === "unchanged") console.log(colors.dim(`${icons.ok} bos.lock.json already matches the resolved composition`)); else { console.log(colors.green(`${icons.ok} Froze the resolved composition`)); console.log(` ${colors.dim("Written:")} ${result.path}`); } if (result.fingerprint) console.log(` ${colors.dim("Fingerprint:")} ${result.fingerprint}`); console.log(); } }; //#endregion export { lockRenderers }; //# sourceMappingURL=lock.mjs.map