diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts new file mode 100644 index 0000000..282cc94 --- /dev/null +++ b/ts/00_commitinfo_data.ts @@ -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' +} diff --git a/ts/index.ts b/ts/index.ts index ae7de01..74da23a 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -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; }