diff options
Diffstat (limited to 'format.ts')
-rwxr-xr-x | format.ts | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/format.ts b/format.ts deleted file mode 100755 index 0b44ef4df..000000000 --- a/format.ts +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env -S deno run --allow-run --allow-write --allow-read --allow-env -// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -const { exit, args, execPath } = Deno; -import { parse } from "./flags/mod.ts"; -import { xrun } from "./prettier/util.ts"; - -async function main(opts): Promise<void> { - const args = [ - execPath(), - "run", - "--allow-write", - "--allow-read", - "prettier/main.ts", - "--ignore", - "node_modules", - "--ignore", - "**/testdata", - "--ignore", - "**/vendor", - "--write" - ]; - - if (opts.check) { - args.push("--check"); - } - - args.push("."); - - exit((await xrun({ args }).status()).code); -} - -main(parse(args)); |