Skip to content

Commit

Permalink
Merge pull request #3 from pulsate-dev/deps/replace-imports-map
Browse files Browse the repository at this point in the history
deps: replace import-map
  • Loading branch information
m1sk9 authored Feb 14, 2024
2 parents ab9a952 + 4b91f17 commit 30e97a9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
uses: denoland/deployctl@v1
with:
project: "link-pulsate-dev"
entrypoint: "src/main.ts"
entrypoint: "main.ts"
root: "."
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 30e97a9

Please sign in to comment.