summaryrefslogtreecommitdiff
path: root/prettier
diff options
context:
space:
mode:
Diffstat (limited to 'prettier')
-rw-r--r--prettier/util.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/prettier/util.ts b/prettier/util.ts
index 425cbfe96..abbf5a993 100644
--- a/prettier/util.ts
+++ b/prettier/util.ts
@@ -1,12 +1,12 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-const { platform, run } = Deno;
+const { build, run } = Deno;
// Runs a command in cross-platform way
export function xrun(opts): Deno.Process {
return run({
...opts,
- args: platform.os === "win" ? ["cmd.exe", "/c", ...opts.args] : opts.args
+ args: build.os === "win" ? ["cmd.exe", "/c", ...opts.args] : opts.args
});
}
-export const executableSuffix = platform.os === "win" ? ".exe" : "";
+export const executableSuffix = build.os === "win" ? ".exe" : "";