diff --git a/deno.json b/deno.json index 7862f7b..3add617 100644 --- a/deno.json +++ b/deno.json @@ -1,9 +1,5 @@ { "name": "@denosaurs/rutt", "version": "0.1.0", - "imports": { - "https://deno.land/x/rutt/mod.ts": "./mod.ts", - "jsr:@denosaurs/rutt": "./mod.ts" - }, "exports": "./mod.ts" } diff --git a/examples/hello_world.ts b/examples/hello_world.ts index d277c7d..4327ad2 100644 --- a/examples/hello_world.ts +++ b/examples/hello_world.ts @@ -1,4 +1,4 @@ -import { router } from "jsr:@denosaurs/rutt"; +import { router } from "../mod.ts"; await Deno.serve( router({ diff --git a/examples/nested_routes.ts b/examples/nested_routes.ts index ed041e2..6e8daef 100644 --- a/examples/nested_routes.ts +++ b/examples/nested_routes.ts @@ -1,4 +1,4 @@ -import { router } from "jsr:@denosaurs/rutt"; +import { router } from "../mod.ts"; await Deno.serve( router({ diff --git a/examples/parameters.ts b/examples/parameters.ts index 70e2981..ee0929f 100644 --- a/examples/parameters.ts +++ b/examples/parameters.ts @@ -1,4 +1,4 @@ -import { router } from "jsr:@denosaurs/rutt"; +import { router } from "../mod.ts"; await Deno.serve( router({ diff --git a/examples/serve.ts b/examples/serve.ts index de58e79..f2c7672 100644 --- a/examples/serve.ts +++ b/examples/serve.ts @@ -1,4 +1,4 @@ -import { router } from "jsr:@denosaurs/rutt"; +import { router } from "../mod.ts"; export default { fetch: router({ diff --git a/test.ts b/test.ts index 3165a7e..804930a 100644 --- a/test.ts +++ b/test.ts @@ -1,5 +1,5 @@ import { assert, assertEquals, assertIsError } from "jsr:@std/assert@1.0.5"; -import { router } from "jsr:@denosaurs/rutt"; +import { router } from "./mod.ts"; /// @ts-ignore - Deno doesn't have this type const TEST_CONN_INFO: Deno.ServeHandlerInfo = {