1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/format.ts
2018-12-18 18:56:59 -05:00

13 lines
245 B
TypeScript
Executable file

#!/usr/bin/env deno --allow-run
import { exit, run } from "deno";
async function main() {
const prettier = run({
args: ["bash", "-c", "prettier --write *.ts **/*.ts"]
});
const s = await prettier.status();
exit(s.code);
}
main();