ci: fix generatePluginList
This commit is contained in:
parent
ebe10d3fad
commit
4df01b1e62
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ export const gitRemotePlugin = {
|
|||
build.onLoad({ filter, namespace: "git-remote" }, async () => {
|
||||
let remote = process.env.VENCORD_REMOTE;
|
||||
if (!remote) {
|
||||
const res = await promisify(exec)("git remote get-url origin", { encoding: "utf-8" });
|
||||
const res = await promisify(exec)("git remote get-url origin", { encoding: "utf-8" });
|
||||
remote = res.stdout.trim()
|
||||
.replace("https://github.com/", "")
|
||||
.replace("git@github.com:", "")
|
||||
|
|
|
@ -161,7 +161,7 @@ async function parseFile(fileName: string) {
|
|||
|
||||
const target = getPluginTarget(fileName);
|
||||
if (target) {
|
||||
if (!["web", "discordDesktop", "vencordDesktop", "dev"].includes(target)) throw fail(`invalid target ${target}`);
|
||||
if (!["web", "discordDesktop", "vencordDesktop", "desktop", "dev"].includes(target)) throw fail(`invalid target ${target}`);
|
||||
data.target = target as any;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue