summaryrefslogtreecommitdiff
path: root/prettier
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-03-07 23:07:12 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-03-07 09:07:12 -0500
commit31f684e71b5c5b0b22e57b0e8bdc50356f8eea09 (patch)
tree75d76af260ec09f9afed2fad2c526d823a7fec91 /prettier
parentcaa383a5835c167bf6657120ad3c1c5009670785 (diff)
Bump CI to v0.3.2 (denoland/deno_std#245)
replace Deno.platform with Deno.build Original: https://github.com/denoland/deno_std/commit/c67751659c50a3c0be5952e3092de7943aa9fa54
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" : "";