fix(core): update
This commit is contained in:
parent
af212b068d
commit
c8438069d3
11
ts/00_commitinfo_data.ts
Normal file
11
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const name: string = '@pushrocks/smartversion';
|
||||
export const version: string = '3.0.2';
|
||||
export const description: string = 'handle semver with ease'
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartversion',
|
||||
version: '3.0.2',
|
||||
description: 'handle semver with ease'
|
||||
}
|
@ -76,12 +76,12 @@ export class SmartVersion {
|
||||
}
|
||||
|
||||
public getNewMinorVersion() {
|
||||
const newInstance = new SmartVersion(`${this.semver.major}.${this.semver.minor + 1}.${this.semver.patch}`);
|
||||
const newInstance = new SmartVersion(`${this.semver.major}.${this.semver.minor + 1}.${0}`);
|
||||
return newInstance;
|
||||
}
|
||||
|
||||
public getNewMajorVersion() {
|
||||
const newInstance = new SmartVersion(`${this.semver.major + 1}.${this.semver.minor}.${this.semver.patch}`);
|
||||
const newInstance = new SmartVersion(`${this.semver.major + 1}.${0}.${0}`);
|
||||
return newInstance;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user