Skip to content

Commit bd2944c

Browse files
committed
Use import map file
1 parent 5fa3bde commit bd2944c

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

deno.jsonc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"tasks": {
33
"dev": "deno run --unstable --allow-read --allow-write --allow-env --allow-net --no-prompt --watch main.ts",
44
"test": "deno test --unstable --allow-read --allow-write .",
5+
"production": "deno run --unstable --allow-read --allow-write --allow-env --allow-net --no-prompt main.ts",
56
},
6-
"imports": {
7-
"oak/": "https://deno.land/x/oak@v12.1.0/",
8-
"std/": "https://deno.land/std@0.176.0/",
9-
},
7+
"importMap": "./import_map.json",
108
}

import_map.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"imports": {
3+
"oak/": "https://deno.land/x/oak@v12.1.0/",
4+
"std/": "https://deno.land/std@0.176.0/"
5+
}
6+
}

0 commit comments

Comments
 (0)