update utils script

This commit is contained in:
thororen1234 2026-08-12 11:26:05 -04:00
parent 81e2a381d0
commit 690e119465
No known key found for this signature in database

View file

@ -46,7 +46,7 @@ export interface PluginData {
commands: Command[]; commands: Command[];
required: boolean; required: boolean;
enabledByDefault: boolean; enabledByDefault: boolean;
target: "discordDesktop" | "vesktop" | "equibop" | "desktop" | "web" | "dev"; target: "discordDesktop" | "vesktop" | "equibop" | "desktop" | "web" | "browser" | "dev";
filePath: string; filePath: string;
dirName: string; dirName: string;
isModified: boolean; isModified: boolean;
@ -235,7 +235,7 @@ export async function parseFile(fileName: string) {
const target = getPluginTarget(fileName); const target = getPluginTarget(fileName);
if (target) { if (target) {
if (!["web", "discordDesktop", "vesktop", "equibop", "desktop", "dev"].includes(target)) throw fail(`invalid target ${target}`); if (!["web", "browser", "discordDesktop", "vesktop", "equibop", "desktop", "dev"].includes(target)) throw fail(`invalid target ${target}`);
data.target = target as any; data.target = target as any;
} }