diff --git a/colors/README.md b/colors/README.md index eafdbb9c11..3148b7cab3 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 d60ecc31c6..e98a32ec98 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 similarity index 100% rename from colors/main.ts rename to colors/mod.ts diff --git a/colors/main_test.ts b/colors/test.ts similarity index 82% rename from colors/main_test.ts rename to colors/test.ts index 2073c7c788..1acc300721 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 885096ac93..0ee32ff8c3 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";