From 9cf88f0df63193814b8795907c9f942347d4bd62 Mon Sep 17 00:00:00 2001 From: naskya <m@naskya.net> Date: Thu, 16 May 2024 03:49:31 +0900 Subject: [PATCH] chore: remove import assertion --- scripts/copy-assets.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/copy-assets.mjs b/scripts/copy-assets.mjs index c5bb35272c..5dd3319956 100644 --- a/scripts/copy-assets.mjs +++ b/scripts/copy-assets.mjs @@ -15,7 +15,7 @@ await (async () => { ]); const locales = (await import("../locales/index.mjs")).default; - const meta = (await import("../built/meta.json", { assert: { type: "json" } })).default; + const meta = JSON.parse(await fs.readFile(file("built/meta.json"))); for await (const [lang, locale] of Object.entries(locales)) { await fs.writeFile(