diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-04-29 13:05:54 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-04-29 13:05:54 +0900 |
| commit | 0281e88dab3c4f156f8f3f1170cc6bde61710bde (patch) | |
| tree | d6c3c398e40b3cc0c7c480992e90a23e405330d2 | |
| parent | b082f01c144df6c9d4da358ffc054c69b4b4405c (diff) | |
| download | nsfisis.dev-0281e88dab3c4f156f8f3f1170cc6bde61710bde.tar.gz nsfisis.dev-0281e88dab3c4f156f8f3f1170cc6bde61710bde.tar.zst nsfisis.dev-0281e88dab3c4f156f8f3f1170cc6bde61710bde.zip | |
chore(blog/nuldoc): define import map in deno.jsonc instead of import_map.json
| -rw-r--r-- | vhosts/blog/deno.jsonc | 7 | ||||
| -rw-r--r-- | vhosts/blog/deno.lock | 28 | ||||
| -rw-r--r-- | vhosts/blog/import_map.json | 5 | ||||
| -rw-r--r-- | vhosts/blog/nuldoc-src/ndoc/to_html.ts | 2 |
4 files changed, 23 insertions, 19 deletions
diff --git a/vhosts/blog/deno.jsonc b/vhosts/blog/deno.jsonc index d44e9015..dce5e95e 100644 --- a/vhosts/blog/deno.jsonc +++ b/vhosts/blog/deno.jsonc @@ -1,7 +1,10 @@ { - "importMap": "import_map.json", + "imports": { + "std/": "https://deno.land/std@0.170.0/", + "highlight.js": "npm:highlight.js@11.7.0", + }, "tasks": { "check": "deno check nuldoc-src/main.ts && deno lint -- nuldoc-src/ && deno fmt --check -- nuldoc-src/", "fmt": "deno fmt -- nuldoc-src", - } + }, } diff --git a/vhosts/blog/deno.lock b/vhosts/blog/deno.lock index 81de6578..eb929923 100644 --- a/vhosts/blog/deno.lock +++ b/vhosts/blog/deno.lock @@ -1,5 +1,17 @@ { - "version": "2", + "version": "3", + "packages": { + "specifiers": { + "npm:highlight.js": "npm:highlight.js@11.7.0", + "npm:highlight.js@11.7.0": "npm:highlight.js@11.7.0" + }, + "npm": { + "highlight.js@11.7.0": { + "integrity": "sha512-1rRqesRFhMO/PRF+G86evnyJkCgaZFOI+Z6kdj15TA18funfoqJXvgPCLSf0SWq3SRfg1j3HlDs8o4s3EGq1oQ==", + "dependencies": {} + } + } + }, "remote": { "https://deno.land/std@0.170.0/_util/asserts.ts": "d0844e9b62510f89ce1f9878b046f6a57bf88f208a10304aab50efcb48365272", "https://deno.land/std@0.170.0/_util/os.ts": "8a33345f74990e627b9dfe2de9b040004b08ea5146c7c9e8fe9a29070d193934", @@ -72,15 +84,9 @@ "https://deno.land/std@0.170.0/testing/asserts.ts": "51353e79437361d4b02d8e32f3fc83b22231bc8f8d4c841d86fd32b0b0afe940", "https://deno.land/std@0.170.0/version.ts": "eb6935c9beaac221b235d011ba5b127ceb5d3addf329cc01e05806af07ba93e1" }, - "npm": { - "specifiers": { - "highlight.js": "highlight.js@11.7.0" - }, - "packages": { - "highlight.js@11.7.0": { - "integrity": "sha512-1rRqesRFhMO/PRF+G86evnyJkCgaZFOI+Z6kdj15TA18funfoqJXvgPCLSf0SWq3SRfg1j3HlDs8o4s3EGq1oQ==", - "dependencies": {} - } - } + "workspace": { + "dependencies": [ + "npm:highlight.js@11.7.0" + ] } } diff --git a/vhosts/blog/import_map.json b/vhosts/blog/import_map.json deleted file mode 100644 index 0bbc3d36..00000000 --- a/vhosts/blog/import_map.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "imports": { - "std/": "https://deno.land/std@0.170.0/" - } -} diff --git a/vhosts/blog/nuldoc-src/ndoc/to_html.ts b/vhosts/blog/nuldoc-src/ndoc/to_html.ts index 926a0455..16315a09 100644 --- a/vhosts/blog/nuldoc-src/ndoc/to_html.ts +++ b/vhosts/blog/nuldoc-src/ndoc/to_html.ts @@ -1,5 +1,5 @@ // @deno-types="../types/highlight-js.d.ts" -import hljs from "npm:highlight.js"; +import hljs from "highlight.js"; import { Document } from "./document.ts"; import { DocBookError } from "../errors.ts"; import { |
