everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
1 lines • 2 kB
Source Map (JSON)
{"version":3,"file":"lock.mjs","names":[],"sources":["../../../src/cli/commands/lock.ts"],"sourcesContent":["import { colors, icons } from \"../../utils/theme\";\nimport type { ResultRenderer } from \"./context\";\n\nexport const lockRenderers: Record<string, ResultRenderer> = {\n lock: async (result, _ctx) => {\n console.log();\n if (result.status === \"error\") {\n console.error(colors.error(`${icons.err} ${result.error ?? \"bos lock failed\"}`));\n return;\n }\n if (result.status === \"drift\") {\n console.error(colors.error(`${icons.err} composition lockfile drift (${result.path})`));\n for (const line of result.drift ?? []) {\n console.error(` ${line}`);\n }\n console.error(\n colors.dim(\" bos lock --check refuses to pass until the lockfile is refreshed\"),\n );\n return;\n }\n if (result.status === \"unchanged\") {\n console.log(colors.dim(`${icons.ok} bos.lock.json already matches the resolved composition`));\n } else {\n console.log(colors.green(`${icons.ok} Froze the resolved composition`));\n console.log(` ${colors.dim(\"Written:\")} ${result.path}`);\n }\n if (result.fingerprint) {\n console.log(` ${colors.dim(\"Fingerprint:\")} ${result.fingerprint}`);\n }\n console.log();\n },\n};\n"],"mappings":";;;AAGA,MAAa,gBAAgD,EAC3D,MAAM,OAAO,QAAQ,SAAS;CAC5B,QAAQ,IAAI;CACZ,IAAI,OAAO,WAAW,SAAS;EAC7B,QAAQ,MAAM,OAAO,MAAM,GAAG,MAAM,IAAI,GAAG,OAAO,SAAS,mBAAmB,CAAC;EAC/E;CACF;CACA,IAAI,OAAO,WAAW,SAAS;EAC7B,QAAQ,MAAM,OAAO,MAAM,GAAG,MAAM,IAAI,+BAA+B,OAAO,KAAK,EAAE,CAAC;EACtF,KAAK,MAAM,QAAQ,OAAO,SAAS,CAAC,GAClC,QAAQ,MAAM,KAAK,MAAM;EAE3B,QAAQ,MACN,OAAO,IAAI,oEAAoE,CACjF;EACA;CACF;CACA,IAAI,OAAO,WAAW,aACpB,QAAQ,IAAI,OAAO,IAAI,GAAG,MAAM,GAAG,wDAAwD,CAAC;MACvF;EACL,QAAQ,IAAI,OAAO,MAAM,GAAG,MAAM,GAAG,gCAAgC,CAAC;EACtE,QAAQ,IAAI,KAAK,OAAO,IAAI,UAAU,EAAE,GAAG,OAAO,MAAM;CAC1D;CACA,IAAI,OAAO,aACT,QAAQ,IAAI,KAAK,OAAO,IAAI,cAAc,EAAE,GAAG,OAAO,aAAa;CAErE,QAAQ,IAAI;AACd,EACF"}