From c8438069d3cee08bae337030f9078e0432c65e38 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 28 Apr 2022 12:20:09 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 11 +++++++++++ ts/index.ts | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 ts/00_commitinfo_data.ts 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; }