updates
This commit is contained in:
parent
95cba870d4
commit
bf0e798aa8
6
index.js
6
index.js
@ -86,9 +86,13 @@ process.on("exit", (code) => {
|
||||
|
||||
const argvProcessListIndex = process.argv.indexOf("batch-run") + 1;
|
||||
const argvProcessList = process.argv.at(-1);
|
||||
|
||||
const processesFilePath = path.resolve(process.cwd(), "batchrun.config.json");
|
||||
|
||||
if (argvProcessList?.match(/batchrun/i) && !fs.existsSync(processesFilePath)) {
|
||||
console.error(` - ${colors.FgRed}Error:${colors.Reset} No arguments to run`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (fs.existsSync(processesFilePath)) {
|
||||
const processesFile = fs.readFileSync(processesFilePath, "utf8");
|
||||
const processesArray = JSON.parse(processesFile);
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "batchrun",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"description": "Run and manage multiple processes concurrently in one terminal",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
|
Loading…
Reference in New Issue
Block a user