Skip to content

Commit

Permalink
Merge pull request #18 from permaficus/dev-branch
Browse files Browse the repository at this point in the history
chore: fix broken package
  • Loading branch information
permaficus authored Jun 5, 2024
2 parents adafa38 + c74fc4e commit 23e5b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ program
throw new EnmavError(error.message);
}
const { updaterOptions } = configFile;

const { buildMax, minorMax } = {
buildMax: options.buildMax || updaterOptions.buildMax,
minorMax: options.minorMax || updaterOptions.minorMax
}
// exit if one of the value is zero
if (buildMax === 0 || minorMax === 0) {
process.exit(1);
return;
}

const filePath = options.file ? options.file.replace(/^[.\/]+/g, '') : updaterOptions.packageFile.replace(/^[.\/]+/g, '');
Expand Down

0 comments on commit 23e5b9f

Please sign in to comment.