use arg dir

This commit is contained in:
thororen1234 2024-07-18 18:24:18 -04:00
parent a8e4d68705
commit 839af9d486

View file

@ -255,7 +255,7 @@ function isPluginFile({ name }: { name: string; }) {
const data = JSON.stringify(plugins);
if (process.argv.length > 2) {
writeFileSync("dist/equicordplugins.json", data);
writeFileSync(process.argv[2], data);
} else {
console.log(data);
}