UNPKG

@bomb.sh/tools

Version:

The internal dev, build, and lint CLI for Bombshell projects

36 lines (34 loc) 858 B
#!/usr/bin/env node import { build } from "./commands/build.mjs"; import { dev } from "./commands/dev.mjs"; import { format } from "./commands/format.mjs"; import { init } from "./commands/init.mjs"; import { lint } from "./commands/lint.mjs"; import { test } from "./commands/test.mjs"; import { argv } from "node:process"; //#region src/bin.ts const commands = { build, dev, format, init, lint, test }; async function main() { const [command, ...args] = argv.slice(2); if (!command) { console.log(`No command provided. Available commands: ${Object.keys(commands).join(", ")}\n`); return; } const run = commands[command]; if (!run) { console.log(`Unknown command: ${command}. Available commands: ${Object.keys(commands).join(", ")}`); return; } await run({ args }); } main(); //#endregion export { }; //# sourceMappingURL=bin.mjs.map