immediately return the patch incremented version if no changelog entries exist
This commit is contained in:
		@@ -91,6 +91,7 @@ export const utils = {
 | 
			
		||||
        const changelog = changelogUtils.getChangelogOrCreateIfMissing(packageName, packageLocation);
 | 
			
		||||
        if (_.isEmpty(changelog)) {
 | 
			
		||||
            nextVersionIfValid = semver.inc(currentVersion, 'patch');
 | 
			
		||||
            return nextVersionIfValid as string;
 | 
			
		||||
        }
 | 
			
		||||
        const lastEntry = changelog[0];
 | 
			
		||||
        if (semver.gt(currentVersion, lastEntry.version)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user