summaryrefslogtreecommitdiff
path: root/format.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-03-09 02:41:47 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-03-08 12:41:47 -0500
commit0434076ea6ab4abf0673d99feaa13768a2e1e7c8 (patch)
treef462561a31063aeeecab9251a051b93c4d1722dc /format.ts
parentb7a11b486d41de9b2a61225aa211f58cf6d36b88 (diff)
refactor: use execPath where appropriate (denoland/deno_std#255)
Original: https://github.com/denoland/deno_std/commit/bf76484301cccbc857cdf205a44762239392ebed
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",