UNPKG

@lunora/cli

Version:

The Lunora CLI: init, dev, deploy, codegen, migrate, seed, doctor, insights, logs, registry, and the rest of the project commands

5 lines (4 loc) • 425 B
#!/usr/bin/env node import{readFileSync as t}from"node:fs";const e=process.argv.slice(2);if(e.length===1&&(e[0]==="--version"||e[0]==="-V")){const{version:r}=JSON.parse(t(new URL("../package.json",import.meta.url),"utf8"));process.stdout.write(`${r} `)}else try{const{runCli:r}=await import("./cli.mjs"),s=await r();process.exit(s)}catch(r){process.stderr.write(`${r instanceof Error?r.message:String(r)} `),process.exit(1)}