summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-01-11 12:18:21 +1100
committerRyan Dahl <ry@tinyclouds.org>2019-01-10 20:18:21 -0500
commit6f5dbfe10234060828670c8848eb7e42ded1c4cd (patch)
tree0958f813a1892f9dc448d6483e1d32f37f07624e
parent57c877c443765d7aa1f1f2d3cba801f280f19bfa (diff)
Reorg colors (denoland/deno_std#96)
Original: https://github.com/denoland/deno_std/commit/92bbca8166d6566011aff0ef467a83433747a937
-rw-r--r--colors/README.md2
-rw-r--r--colors/example.ts2
-rw-r--r--colors/mod.ts (renamed from colors/main.ts)0
-rw-r--r--colors/test.ts (renamed from colors/main_test.ts)4
-rwxr-xr-xtest.ts2
5 files changed, 5 insertions, 5 deletions
diff --git a/colors/README.md b/colors/README.md
index eafdbb9c1..3148b7cab 100644
--- a/colors/README.md
+++ b/colors/README.md
@@ -10,7 +10,7 @@ The main modules exports a single function name `color` which is a function that
provides chaining to stack colors. Basic usage looks like this:
```ts
-import { color } from "https://deno.land/x/colors/main.ts";
+import { color } from "https://deno.land/x/std/colors/mod.ts";
console.log(color.bgBlue.red.bold("Hello world!"));
```
diff --git a/colors/example.ts b/colors/example.ts
index d60ecc31c..e98a32ec9 100644
--- a/colors/example.ts
+++ b/colors/example.ts
@@ -1,3 +1,3 @@
-import { color } from "main.ts";
+import { color } from "./mod.ts";
console.log(color.bgBlue.red.bold("Hello world!"));
diff --git a/colors/main.ts b/colors/mod.ts
index 8316060db..8316060db 100644
--- a/colors/main.ts
+++ b/colors/mod.ts
diff --git a/colors/main_test.ts b/colors/test.ts
index 2073c7c78..1acc30072 100644
--- a/colors/main_test.ts
+++ b/colors/test.ts
@@ -1,6 +1,6 @@
import { assertEqual, test } from "../testing/mod.ts";
-import { color } from "main.ts";
-import "example.ts";
+import { color } from "./mod.ts";
+import "./example.ts";
test(function singleColor() {
assertEqual(color.red("Hello world"), "Hello world");
diff --git a/test.ts b/test.ts
index 885096ac9..0ee32ff8c 100755
--- a/test.ts
+++ b/test.ts
@@ -1,7 +1,7 @@
#!/usr/bin/env deno --allow-run --allow-net --allow-write
import { run } from "deno";
-import "colors/main_test.ts";
+import "colors/test.ts";
import "datetime/test.ts";
import "examples/test.ts";
import "flags/test.ts";