From 131c1196199ce8315a2110b0cceb9e406983f29b Mon Sep 17 00:00:00 2001 From: pylixonly <82711525+pylixonly@users.noreply.github.com> Date: Wed, 23 Oct 2024 10:41:21 +0800 Subject: [PATCH] refactor(plugins): read build files from `dist/builds` --- src/lib/addons/plugins/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/addons/plugins/index.ts b/src/lib/addons/plugins/index.ts index d14363d..8d0b421 100644 --- a/src/lib/addons/plugins/index.ts +++ b/src/lib/addons/plugins/index.ts @@ -84,7 +84,7 @@ export function isPluginEnabled(id: string) { * @returns The newly fetched plugin manifest */ export async function updateAndWritePlugin(repoUrl: string, id: string, fetchScript: boolean) { - const manifest: t.BunnyPluginManifestInternal = await fetchJSON(repoUrl, `plugins/${id}/manifest.json`); + const manifest: t.BunnyPluginManifestInternal = await fetchJSON(repoUrl, `builds/${id}/manifest.json`); // @ts-expect-error - Setting a readonly property manifest.parentRepository = repoUrl; @@ -93,7 +93,7 @@ export async function updateAndWritePlugin(repoUrl: string, id: string, fetchScr // @ts-expect-error - Setting a readonly property manifest.jsPath = `plugins/scripts/${id}.js`; - const js: string = await fetchJS(repoUrl, `plugins/${id}/index.js`); + const js: string = await fetchJS(repoUrl, `builds/${id}/index.js`); await writeFile(manifest.jsPath, js); }