HonoH
Hono2y ago
1 reply
foobar

Hono and 3rd party middleware on Deno

Hi,

I use Hono and 3rd party middleware on Deno. I import them with npm / esm.

Is there a better way to link dependencies with hono ? Does porting them on jsr will help ?

My actual settings

  "imports": {
    "@/": "./",
    "@scalar/hono-api-reference": "npm:@scalar/hono-api-reference",
    "hono": "jsr:@hono/hono@^4.4.0",
    // For hono swagger
    "hono/swagger-ui": "https://esm.sh/@hono/swagger-ui@0.2.2?external=hono&target=es2022",
    "hono/zod-validator": "https://esm.sh/@hono/zod-validator@0.2.1?external=hono,zod&target=es2022",
    "hono/zod-openapi": "https://esm.sh/@hono/zod-openapi@0.11.1?external=hono,zod,hono/zod-validator&target=es2022",
    "zod": "https://deno.land/x/zod@v3.23.8/mod.ts"
  }
Was this page helpful?