aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-04-05 04:54:54 +0200
committerVendicated <vendicated@riseup.net>2023-04-05 04:54:54 +0200
commit99391a4f0eda95f06a5949496747b33a350e41f5 (patch)
tree7abb6734d20f7c28c5145003987d45badc67975a /scripts
parent6492908a62cbb8e56be6b28e574a3e9e33cc5051 (diff)
downloadVencord-99391a4f0eda95f06a5949496747b33a350e41f5.tar.gz
Vencord-99391a4f0eda95f06a5949496747b33a350e41f5.tar.bz2
Vencord-99391a4f0eda95f06a5949496747b33a350e41f5.zip
fix generatePluginList
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generatePluginList.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generatePluginList.ts b/scripts/generatePluginList.ts
index 1f66c3d..e4ae20a 100644
--- a/scripts/generatePluginList.ts
+++ b/scripts/generatePluginList.ts
@@ -35,7 +35,7 @@ interface PluginData {
hasCommands: boolean;
required: boolean;
enabledByDefault: boolean;
- target: "desktop" | "web" | "dev";
+ target: "discordDesktop" | "vencordDesktop" | "web" | "dev";
}
const devs = {} as Record<string, Dev>;
@@ -150,7 +150,7 @@ async function parseFile(fileName: string) {
const fileBits = fileName.split(".");
if (fileBits.length > 2 && ["ts", "tsx"].includes(fileBits.at(-1)!)) {
const mod = fileBits.at(-2)!;
- if (!["web", "desktop", "dev"].includes(mod)) throw fail(`invalid target ${fileBits.at(-2)}`);
+ if (!["web", "discordDesktop", "vencordDesktop", "dev"].includes(mod)) throw fail(`invalid target ${fileBits.at(-2)}`);
data.target = mod as any;
}