From f28e65cea3633e636704f131f3876f4608d044fd Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sun, 13 Oct 2024 22:19:20 +1030 Subject: [PATCH 1/2] fix: upgrade gfm to avoid emoji import error --- deno.json | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/deno.json b/deno.json index dad683a8..9a5e1a5c 100644 --- a/deno.json +++ b/deno.json @@ -19,21 +19,23 @@ }, "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" }, "imports": { - "@/": "./", "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/60220dd33b5b0f6b5c72927c933dbc32a3c4734e/", - "preact": "https://esm.sh/preact@10.19.2", - "preact/": "https://esm.sh/preact@10.19.2/", - "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.2", + "$std/": "https://deno.land/std@0.208.0/", + "@/": "./", + "@deno/gfm": "jsr:@deno/gfm@^0.9.0", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.1", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.0", - "tailwindcss": "npm:tailwindcss@3.4.1", - "tailwindcss/": "npm:/tailwindcss@3.4.1/", - "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/plugin.js", - "$std/": "https://deno.land/std@0.208.0/", - "stripe": "npm:/stripe@13.5.0", + "fresh_charts/": "https://deno.land/x/fresh_charts@0.3.1/", + "https://deno.land/x/x/emoji@0.3.0/emoji.ts": "https://deno.land/x/emoji@0.3.1/emoji.ts", "kv_oauth/": "https://deno.land/x/deno_kv_oauth@v0.9.1/", + "preact": "https://esm.sh/preact@10.19.2", + "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.2", + "preact/": "https://esm.sh/preact@10.19.2/", + "stripe": "npm:/stripe@13.5.0", "tabler_icons_tsx/": "https://deno.land/x/tabler_icons_tsx@0.0.4/tsx/", - "fresh_charts/": "https://deno.land/x/fresh_charts@0.3.1/" + "tailwindcss": "npm:tailwindcss@3.4.1", + "tailwindcss/": "npm:/tailwindcss@3.4.1/", + "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/plugin.js" }, "exclude": ["coverage/", "_fresh/", "**/_fresh/*"], "lint": { "rules": { "tags": ["fresh", "recommended"] } } From 2c483c153041660f898bef634d4d626452dfe664 Mon Sep 17 00:00:00 2001 From: Zeno Jiricek Date: Sun, 13 Oct 2024 22:20:14 +1030 Subject: [PATCH 2/2] Update [slug].tsx --- plugins/blog/routes/blog/[slug].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/blog/routes/blog/[slug].tsx b/plugins/blog/routes/blog/[slug].tsx index 55c01b9c..a9d51093 100644 --- a/plugins/blog/routes/blog/[slug].tsx +++ b/plugins/blog/routes/blog/[slug].tsx @@ -1,6 +1,6 @@ // Copyright 2023-2024 the Deno authors. All rights reserved. MIT license. import { defineRoute } from "$fresh/server.ts"; -import { CSS, render } from "https://deno.land/x/gfm@0.2.5/mod.ts"; +import { CSS, render } from "@deno/gfm"; import { getPost } from "../../utils/posts.ts"; import Head from "@/components/Head.tsx"; import Share from "../../components/Share.tsx";