mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2026-04-08 09:04:17 +00:00
fix: fix increment
This commit is contained in:
parent
ad90df1fce
commit
35fc660a00
7 changed files with 18 additions and 18 deletions
|
|
@ -97,7 +97,7 @@ class DefaultVersionClassifier {
|
|||
const currentIncremement = versionsMatch ? increment : 0;
|
||||
return new VersionClassification_1.VersionClassification(VersionType_1.VersionType.None, currentIncremement, false, lastRelease.currentMajor, lastRelease.currentMinor, lastRelease.currentPatch);
|
||||
}
|
||||
return new VersionClassification_1.VersionClassification(type, increment, changed, major, minor, patch);
|
||||
return new VersionClassification_1.VersionClassification(type, type !== VersionType_1.VersionType.None ? 0 : increment, changed, major, minor, patch);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue