diff options
| author | Bert Belder <bertbelder@gmail.com> | 2019-02-25 21:35:50 -0800 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-26 00:35:50 -0500 |
| commit | 2ba7de2d04fb7fb5847b86d9c549f1cbf9c68d5a (patch) | |
| tree | ca85b441bcfcebd48ac1fb4e262d836215242167 /prettier | |
| parent | a7bf19135352928c87b5e1068252e0490990cec3 (diff) | |
Change `import { x } from "deno"` to `const { x } = Deno` (denoland/deno_std#218)
Original: https://github.com/denoland/deno_std/commit/6063378a9284a48d42e37b4899f947c5c8bbf0b3
Diffstat (limited to 'prettier')
| -rwxr-xr-x | prettier/main.ts | 11 | ||||
| -rw-r--r-- | prettier/main_test.ts | 2 | ||||
| -rw-r--r-- | prettier/util.ts | 2 |
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) { |
