update utils script
This commit is contained in:
parent
81e2a381d0
commit
690e119465
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue