1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/prettier/util.ts
Yoshiya Hinosawa 31f684e71b Bump CI to v0.3.2 (denoland/deno_std#245)
replace Deno.platform with Deno.build
Original: c67751659c
2019-03-07 09:07:12 -05:00

12 lines
366 B
TypeScript

// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
const { build, run } = Deno;
// Runs a command in cross-platform way
export function xrun(opts): Deno.Process {
return run({
...opts,
args: build.os === "win" ? ["cmd.exe", "/c", ...opts.args] : opts.args
});
}
export const executableSuffix = build.os === "win" ? ".exe" : "";