summaryrefslogtreecommitdiff
path: root/format.ts
diff options
context:
space:
mode:
Diffstat (limited to 'format.ts')
-rwxr-xr-xformat.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/format.ts b/format.ts
index 3a28d6650..d5878f27b 100755
--- a/format.ts
+++ b/format.ts
@@ -1,12 +1,12 @@
#!/usr/bin/env deno --allow-run --allow-write --allow-read
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-const { exit, args } = Deno;
+const { exit, args, execPath } = Deno;
import { parse } from "./flags/mod.ts";
-import { xrun, executableSuffix } from "./prettier/util.ts";
+import { xrun } from "./prettier/util.ts";
async function main(opts) {
const args = [
- `deno${executableSuffix}`,
+ execPath,
"--allow-write",
"--allow-read",
"prettier/main.ts",