From 31f684e71b5c5b0b22e57b0e8bdc50356f8eea09 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 7 Mar 2019 23:07:12 +0900 Subject: 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 --- prettier/util.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'prettier/util.ts') 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" : ""; -- cgit v1.2.3