diff --git a/deps.ts b/deps.ts new file mode 100644 index 0000000..6659455 --- /dev/null +++ b/deps.ts @@ -0,0 +1,3 @@ +export { assert } from "https://deno.land/std@0.87.0/testing/asserts.ts"; +export { readLines } from "https://deno.land/std@0.87.0/io/bufio.ts"; +export { serve } from "https://deno.land/std@0.87.0/http/server.ts"; diff --git a/examples/test.ts b/examples/test.ts index 259cfb3..86bc717 100644 --- a/examples/test.ts +++ b/examples/test.ts @@ -1,6 +1,6 @@ // Run using deno test -import { assert } from "https://deno.land/std@0.87.0/testing/asserts.ts"; +import { assert } from "../deps.ts"; Deno.test("Hello test", () => { assert("Hello"); diff --git a/index.ts b/index.ts index d525446..caf985c 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,4 @@ -import { serve } from "https://deno.land/std@0.87.0/http/server.ts"; +import { serve } from "./deps.ts"; const s = serve({ port: 8000 });