diff options
Diffstat (limited to 'format.ts')
-rwxr-xr-x | format.ts | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -#!/usr/bin/env -S deno run --allow-run --allow-write --allow-read +#!/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"; @@ -6,7 +6,7 @@ import { xrun } from "./prettier/util.ts"; async function main(opts): Promise<void> { const args = [ - execPath, + execPath(), "run", "--allow-write", "--allow-read", @@ -24,6 +24,8 @@ async function main(opts): Promise<void> { args.push("--check"); } + args.push("."); + exit((await xrun({ args }).status()).code); } |