From aeb5084a0288087a0902ee19f434f6fc1a3326e5 Mon Sep 17 00:00:00 2001 From: axetroy Date: Sun, 16 Jun 2019 22:01:23 +0800 Subject: [PATCH 1/2] move prettier/util.ts xrun function to util/xrun.ts --- format.ts | 2 +- prettier/main_test.ts | 2 +- test.ts | 2 +- prettier/util.ts => util/xrun.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename prettier/util.ts => util/xrun.ts (99%) diff --git a/format.ts b/format.ts index f0465af50998..6731795792b4 100755 --- a/format.ts +++ b/format.ts @@ -2,7 +2,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. const { exit, args, execPath } = Deno; import { parse } from "./flags/mod.ts"; -import { xrun } from "./prettier/util.ts"; +import { xrun } from "./util/xrun.ts"; async function main(opts): Promise { const args = [ diff --git a/prettier/main_test.ts b/prettier/main_test.ts index 13340b04ee1e..962717fea4eb 100644 --- a/prettier/main_test.ts +++ b/prettier/main_test.ts @@ -3,7 +3,7 @@ import { join } from "../fs/path.ts"; import { EOL } from "../fs/path/constants.ts"; import { assertEquals } from "../testing/asserts.ts"; import { test } from "../testing/mod.ts"; -import { xrun } from "./util.ts"; +import { xrun } from "../util/xrun.ts"; import { copy, emptyDir } from "../fs/mod.ts"; const { readAll, execPath } = Deno; diff --git a/test.ts b/test.ts index c1381cb27609..fa567986164a 100755 --- a/test.ts +++ b/test.ts @@ -23,7 +23,7 @@ import "./textproto/test.ts"; import "./util/test.ts"; import "./ws/test.ts"; -import { xrun } from "./prettier/util.ts"; +import { xrun } from "./util/xrun.ts"; import { red, green } from "./colors/mod.ts"; import { runTests } from "./testing/mod.ts"; diff --git a/prettier/util.ts b/util/xrun.ts similarity index 99% rename from prettier/util.ts rename to util/xrun.ts index b8f79005db00..8220761afd4a 100644 --- a/prettier/util.ts +++ b/util/xrun.ts @@ -7,4 +7,4 @@ export function xrun(opts: Deno.RunOptions): Deno.Process { ...opts, args: build.os === "win" ? ["cmd.exe", "/c", ...opts.args] : opts.args }); -} +} \ No newline at end of file From 83db6c12066f07c4cc1a5f4c7c571e3a0bcb9f87 Mon Sep 17 00:00:00 2001 From: axetroy Date: Sun, 16 Jun 2019 22:08:45 +0800 Subject: [PATCH 2/2] update --- util/xrun.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/xrun.ts b/util/xrun.ts index 8220761afd4a..b8f79005db00 100644 --- a/util/xrun.ts +++ b/util/xrun.ts @@ -7,4 +7,4 @@ export function xrun(opts: Deno.RunOptions): Deno.Process { ...opts, args: build.os === "win" ? ["cmd.exe", "/c", ...opts.args] : opts.args }); -} \ No newline at end of file +}