blob: 73f6260d3f921954f66870d84d398c45f079a760 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import * as _ from 'lodash';
export const utils = {
log(...args: any[]): void {
console.log(...args); // tslint:disable-line:no-console
},
getNextPatchVersion(currentVersion: string): string {
const versionSegments = currentVersion.split('.');
const patch = _.parseInt(_.last(versionSegments) as string);
const newPatch = patch + 1;
const newPatchVersion = `${versionSegments[0]}.${versionSegments[1]}.${newPatch}`;
return newPatchVersion;
},
};
|