summaryrefslogtreecommitdiff
path: root/prettier
diff options
context:
space:
mode:
Diffstat (limited to 'prettier')
-rwxr-xr-xprettier/main.ts11
-rw-r--r--prettier/main_test.ts2
-rw-r--r--prettier/util.ts2
3 files changed, 3 insertions, 12 deletions
diff --git a/prettier/main.ts b/prettier/main.ts
index 435206dcd..70c225086 100755
--- a/prettier/main.ts
+++ b/prettier/main.ts
@@ -2,16 +2,7 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
// This script formats the given source files. If the files are omitted, it
// formats the all files in the repository.
-import {
- args,
- platform,
- readAll,
- lstat,
- exit,
- run,
- readFile,
- writeFile
-} from "deno";
+const { args, platform, readAll, lstat, exit, run, readFile, writeFile } = Deno;
import { xrun } from "./util.ts";
import { parse } from "../flags/mod.ts";
import { prettier, prettierPlugins } from "./prettier.ts";
diff --git a/prettier/main_test.ts b/prettier/main_test.ts
index d770d7232..165081e00 100644
--- a/prettier/main_test.ts
+++ b/prettier/main_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { test, assertEqual } from "../testing/mod.ts";
import { xrun, executableSuffix } from "./util.ts";
-import { readAll } from "deno";
+const { readAll } = Deno;
const decoder = new TextDecoder();
diff --git a/prettier/util.ts b/prettier/util.ts
index 179be444b..0be583f75 100644
--- a/prettier/util.ts
+++ b/prettier/util.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { platform, run } from "deno";
+const { platform, run } = Deno;
// Runs a command in cross-platform way
export function xrun(opts) {