Skip to content

Commit

Permalink
skip snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 23, 2024
1 parent e6c2ff5 commit 2023ae4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/demand.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ const semver = require('semver');
* @param {String} min - Minimal expected version
*/
module.exports.gte = function(subject, current, min) {
if (current.endsWith('-SNAPSHOT')) {
return;
}
if (semver.lt(current, min)) {
console.error(
'%s is required to have version %s or higher, while you use %s',
Expand Down

0 comments on commit 2023ae4

Please sign in to comment.