Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #36 from scamden/master
Browse files Browse the repository at this point in the history
allow user to pass preid to semver
  • Loading branch information
stevelacy committed Mar 13, 2015
2 parents c63c31d + d23cb78 commit 919cc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function(opts) {
}
else if (semver.valid(content[opts.key])) {
// increment the key with type
content[opts.key] = semver.inc(content[opts.key], opts.type);
content[opts.key] = semver.inc(content[opts.key], opts.type, opts.preid);
ver = content[opts.key];
}
else if (opts.key.indexOf('.') > -1) {
Expand Down

0 comments on commit 919cc8e

Please sign in to comment.