From cda50448dbf533ead15a8f632327b4116a6b34e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl=20=28xHyroM=29?= Date: Tue, 2 Jan 2024 11:24:04 +0100 Subject: [PATCH] fix: load tags correctly, updatel lilybird --- bun.lockb | Bin 16930 -> 16930 bytes package.json | 2 +- src/loaders/tags.ts | 7 +++---- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bun.lockb b/bun.lockb index 038301fb1b0ad3e45174681601910f086ba06021..98f93e3697908f5f3a5ec52666709444a39b4395 100755 GIT binary patch delta 147 zcmV;E0BrxFgaM+20gx^r56Pc7&@p|%3>_Bf7Xn&kAG>!~V)O4AMCwV_o3W{&u}-Q3 zlXMFxvmgXL4M0kwo<+2go?My=H^%wGvc#a@V=SUjM=t*4veu7Ca5l#J)__Svuf$N) z?5}l^JoXLxsbe~$=(=Xh%h4I4X;HJC5zre30WdB!E;6%oEy4!@GL!K;AG1|8%?x|d BL+$_o delta 147 zcmV;E0BrxFgaM+20gx^rNC|Z!@-c#p$?`fe2ujSjPvuV2wkWPi)13nUbdPmmu}-Q3 zle7vbvmgXL4M4gdv}Z+>jb59+|I&U`33v5ien*kd5M_nGJ4(Ixp;71y9Wx!nI+4o@ z5zre30ssI2006UdEy4!@F_ZB-AG1|8%?tuR BKqdeH diff --git a/package.json b/package.json index d0607c0..6081fb4 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@paperdave/logger": "^3.0.1", "algoliasearch": "^4.19.1", "gray-matter": "^4.0.3", - "lilybird": "^0.4.1", + "lilybird": "0.4.2", "zlib-sync": "^0.1.8" } } diff --git a/src/loaders/tags.ts b/src/loaders/tags.ts index d08abc6..a40fe4a 100644 --- a/src/loaders/tags.ts +++ b/src/loaders/tags.ts @@ -12,14 +12,13 @@ import { Glob } from "bun"; type PartialGuildTextChannel = PartialChannel; -const tags = Array.from( - new Glob(join(import.meta.dir, "..", "..", "data", "tags", "*.md")).scanSync() -); +const TAGS_PATH = join(import.meta.dir, "..", "..", "data", "tags"); +const tags = Array.from(new Glob("*.md").scanSync(TAGS_PATH)); export const TAGS: Tag[] = []; for (const tag of tags) { - const content = readFileSync(tag); + const content = readFileSync(join(TAGS_PATH, tag)); const frontMatter = matter(content); TAGS.push({