summaryrefslogtreecommitdiff
path: root/format.ts
diff options
context:
space:
mode:
Diffstat (limited to 'format.ts')
-rwxr-xr-xformat.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/format.ts b/format.ts
index ca5648553..08d1aaed9 100755
--- a/format.ts
+++ b/format.ts
@@ -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);
}