From c09290c9d57a560917cfb1ac46a0dfca1b6c27b4 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 11 Aug 2024 13:52:49 -0700 Subject: [PATCH] fix: jsr import --- deno.json | 6 +++--- src/mod.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno.json b/deno.json index ba47ed7..f19e279 100644 --- a/deno.json +++ b/deno.json @@ -1,8 +1,8 @@ { "tasks": { - "dev": "deno run --unstable --allow-env --allow-read --allow-net --watch src/main.ts", - "start": "deno run --unstable --allow-env --allow-read --allow-net src/main.ts", - "test": "deno test --unstable -A" + "dev": "deno run --unstable-kv --allow-env --allow-read --allow-net --watch src/main.ts", + "start": "deno run --unstable-kv --allow-env --allow-read --allow-net src/main.ts", + "test": "deno test --unstable-kv -A" }, "importMap": "./import_map.json", "fmt": { diff --git a/src/mod.ts b/src/mod.ts index bf20094..9c78f03 100644 --- a/src/mod.ts +++ b/src/mod.ts @@ -1,6 +1,6 @@ import { Hono } from "hono"; import "https://deno.land/x/dotenv@v3.2.2/load.ts"; -import { cors } from "hono/cors"; +import { cors } from "jsr:@hono/hono/cors"; import router_book from "$/routers/book.ts"; import router_auth from "$/routers/auth.ts"; import router_notes from "$/routers/notes.ts";