diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-12-18 18:56:12 -0500 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-18 18:56:59 -0500 |
| commit | e249378fdfebdb0e513cc692b581dad49efd9af1 (patch) | |
| tree | ed7bee33f28d293b87ba43940032b35e5f7d6de6 /format.ts | |
| parent | 968d50842512a007dc9c2e4ae31b1970fdc6e6a2 (diff) | |
Add format script.
Original: https://github.com/denoland/deno_std/commit/85ff88b0cc076d1a79fd15ddf4475270765bcfda
Diffstat (limited to 'format.ts')
| -rwxr-xr-x | format.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/format.ts b/format.ts new file mode 100755 index 000000000..251cba1ed --- /dev/null +++ b/format.ts @@ -0,0 +1,13 @@ +#!/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(); |
