summaryrefslogtreecommitdiff
path: root/prettier
diff options
context:
space:
mode:
Diffstat (limited to 'prettier')
-rw-r--r--prettier/main_test.ts6
-rw-r--r--prettier/util.ts2
2 files changed, 3 insertions, 5 deletions
diff --git a/prettier/main_test.ts b/prettier/main_test.ts
index ed2274a6b..718b716af 100644
--- a/prettier/main_test.ts
+++ b/prettier/main_test.ts
@@ -2,8 +2,8 @@
import { join } from "../fs/path.ts";
import { assertEquals } from "../testing/asserts.ts";
import { test } from "../testing/mod.ts";
-import { xrun, executableSuffix } from "./util.ts";
-const { readAll } = Deno;
+import { xrun } from "./util.ts";
+const { readAll, execPath } = Deno;
const decoder = new TextDecoder();
@@ -19,7 +19,7 @@ async function run(
}
const cmd = [
- `deno${executableSuffix}`,
+ execPath,
"--allow-run",
"--allow-write",
"--allow-read",
diff --git a/prettier/util.ts b/prettier/util.ts
index abbf5a993..1c5513c8d 100644
--- a/prettier/util.ts
+++ b/prettier/util.ts
@@ -8,5 +8,3 @@ export function xrun(opts): Deno.Process {
args: build.os === "win" ? ["cmd.exe", "/c", ...opts.args] : opts.args
});
}
-
-export const executableSuffix = build.os === "win" ? ".exe" : "";