mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-28 13:28:18 +00:00
fix: fix increment
This commit is contained in:
parent
ad90df1fce
commit
35fc660a00
7 changed files with 18 additions and 18 deletions
|
|
@ -3,6 +3,6 @@ repos:
|
||||||
rev: v1.1.1
|
rev: v1.1.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
exclude: ^version.json
|
exclude: ^dist/*
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
2
dist/index.js
vendored
2
dist/index.js
vendored
|
|
@ -912,7 +912,7 @@ class DefaultVersionClassifier {
|
||||||
const currentIncremement = versionsMatch ? increment : 0;
|
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(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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -97,7 +97,7 @@ class DefaultVersionClassifier {
|
||||||
const currentIncremement = versionsMatch ? increment : 0;
|
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(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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,6 @@ export class DefaultVersionClassifier implements VersionClassifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return new VersionClassification(type, increment, changed, major, minor, patch);
|
return new VersionClassification(type, type !== VersionType.None ? 0 : increment, changed, major, minor, patch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue