@bomb.sh/tools
Version:
The internal dev, build, and lint CLI for Bombshell projects
1 lines • 788 B
Source Map (JSON)
{"version":3,"file":"format.mjs","names":[],"sources":["../../src/commands/format.ts"],"sourcesContent":["import { fileURLToPath } from \"node:url\";\nimport { x } from \"tinyexec\";\nimport type { CommandContext } from \"../context.ts\";\nimport { local } from \"../utils.ts\";\n\nconst config = fileURLToPath(new URL(\"../../oxfmtrc.json\", import.meta.url));\n\nexport async function format(ctx: CommandContext) {\n\tconst stdio = x(local(\"oxfmt\"), [\"-c\", config, \"./src\", ...ctx.args]);\n\n\tfor await (const line of stdio) {\n\t\tconsole.log(line);\n\t}\n}\n"],"mappings":";;;;;AAKA,MAAM,SAAS,cAAc,IAAI,IAAI,sBAAsB,OAAO,KAAK,IAAI,CAAC;AAE5E,eAAsB,OAAO,KAAqB;CACjD,MAAM,QAAQ,EAAE,MAAM,QAAQ,EAAE;EAAC;EAAM;EAAQ;EAAS,GAAG,IAAI;EAAK,CAAC;AAErE,YAAW,MAAM,QAAQ,MACxB,SAAQ,IAAI,KAAK"}