Skip to content

Commit

Permalink
deps: replace import-map
Browse files Browse the repository at this point in the history
  • Loading branch information
m1sk9 committed Feb 14, 2024
1 parent ab9a952 commit f62366c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
15 changes: 10 additions & 5 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
{
"tasks": {
"start": "deno run --allow-net --allow-read src/main.ts",
"dev": "deno run --watch --allow-net --allow-read src/main.ts",
"cache": "deno cache src/deps.ts",
"check": "deno check src/main.ts",
"start": "deno run --allow-net --allow-read main.ts",
"dev": "deno run --watch --allow-net --allow-read main.ts",
"cache": "deno cache deps.ts",
"check": "deno check main.ts",
"fmt": "deno fmt --watch .",
"fmt:check": "deno fmt --check",
"lint": "deno lint"
},
"fmt": {
"singleQuote": true
"singleQuote": true,
"semiColons": true
},
"imports": {
"hono/mod": "https://deno.land/x/[email protected]/mod.ts",
"hono/middleware": "https://deno.land/x/[email protected]/middleware.ts"
}
}
3 changes: 2 additions & 1 deletion src/main.ts → main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Hono, logger, poweredBy } from './deps.ts';
import { Hono } from 'hono/mod';
import { logger, poweredBy } from 'hono/middleware';

const app = new Hono();

Expand Down
2 changes: 0 additions & 2 deletions src/deps.ts

This file was deleted.

0 comments on commit f62366c

Please sign in to comment.