UNPKG

@bomb.sh/tools

Version:

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

19 lines (17 loc) 456 B
import { local } from "../utils.mjs"; import { x } from "tinyexec"; import { fileURLToPath } from "node:url"; //#region src/commands/format.ts const config = fileURLToPath(new URL("../../oxfmtrc.json", import.meta.url)); async function format(ctx) { const stdio = x(local("oxfmt"), [ "-c", config, "./src", ...ctx.args ]); for await (const line of stdio) console.log(line); } //#endregion export { format }; //# sourceMappingURL=format.mjs.map