checkPlugin: Move everything inside async IIFE

This commit is contained in:
Richard Hansen 2022-02-20 17:35:56 -05:00
parent 2e0e872ae3
commit 5a66abae8b

View file

@ -20,6 +20,7 @@ const fsp = fs.promises;
const childProcess = require('child_process');
const path = require('path');
(async () => {
// get plugin name & path from user input
const pluginName = process.argv[2];
@ -133,7 +134,6 @@ if (autoPush) {
console.warn('Auto push is enabled, I hope you know what you are doing...');
}
(async () => {
const files = await fsp.readdir(pluginPath);
// some files we need to know the actual file name. Not compulsory but might help in the future.