From 4c738cd032543cfdbd204659d4a01e01560d8c4f Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sun, 27 Oct 2024 19:30:35 -0400 Subject: [PATCH] Remove Readme Check --- scripts/generateEquicordPluginList.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/generateEquicordPluginList.ts b/scripts/generateEquicordPluginList.ts index eded89f0..4ce76732 100644 --- a/scripts/generateEquicordPluginList.ts +++ b/scripts/generateEquicordPluginList.ts @@ -205,11 +205,7 @@ async function parseFile(fileName: string) { .replace(/\/index\.([jt]sx?)$/, "") .replace(/^src\/plugins\//, ""); - let readme = ""; - try { - readme = readFileSync(join(fileName, "..", "README.md"), "utf-8"); - } catch { } - return [data, readme] as const; + return [data] as const; } throw fail("no default export called 'definePlugin' found"); @@ -240,15 +236,13 @@ function isPluginFile({ name }: { name: string; }) { parseEquicordDevs(); const plugins = [] as PluginData[]; - const readmes = {} as Record; await Promise.all(["src/equicordplugins"].flatMap(dir => readdirSync(dir, { withFileTypes: true }) .filter(isPluginFile) .map(async dirent => { - const [data, readme] = await parseFile(await getEntryPoint(dir, dirent)); + const [data] = await parseFile(await getEntryPoint(dir, dirent)); plugins.sort().push(data); - if (readme) readmes[data.name] = readme; }) ));