Skip to content

Commit 59a0341

Browse files
committed
chore(): remove prerelease increments
1 parent 1a37493 commit 59a0341

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.scripts/prepare.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,12 @@ async function generateChangeLog() {
207207
}
208208

209209

210-
const SEMVER_INCREMENTS = ['patch', 'minor', 'major', 'prepatch', 'preminor', 'premajor', 'prerelease'];
211-
const PRERELEASE_VERSIONS = ['prepatch', 'preminor', 'premajor', 'prerelease'];
210+
const SEMVER_INCREMENTS = ['patch', 'minor', 'major'];
212211

213212
const isValidVersion = input => Boolean(semver.valid(input));
214213

215214
const isValidVersionInput = input => SEMVER_INCREMENTS.indexOf(input) !== -1 || common.isValidVersion(input);
216215

217-
const isPrereleaseVersion = version => PRERELEASE_VERSIONS.indexOf(version) !== -1 || Boolean(semver.prerelease(version));
218-
219216
function getNewVersion(oldVersion, input) {
220217
if (!isValidVersionInput(input)) {
221218
throw new Error(`Version should be either ${SEMVER_INCREMENTS.join(', ')} or a valid semver version.`);

0 commit comments

Comments
 (0)