Skip to content

Commit

Permalink
Merge pull request #10 from marceloavf/master
Browse files Browse the repository at this point in the history
fix(extension-version): disable multiplication when noversiontransform
  • Loading branch information
asiffermann authored Feb 6, 2018
2 parents 0e5ae3d + d1ce485 commit 895dd98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ exports.getSemanticVersion = () => {
throw new Error('Package: invalid semver version: ' + version);
}

var patch = semver.patch(version) * 1000;
var patch = semver.patch(version);

if (!options.noversiontransform){
patch *= 1000;
var prerelease = semver.prerelease(version);
if (prerelease) {;
patch += prerelease[1];
Expand Down

0 comments on commit 895dd98

Please sign in to comment.