diff --git a/src/Version.ts b/src/Version.ts index d105faf..f8481d7 100644 --- a/src/Version.ts +++ b/src/Version.ts @@ -27,6 +27,10 @@ class Version { return new Version(major, minor, patch, label); } + public toString() { + return `${this.major}.${this.minor}.${this.patch}${this.label === undefined ? "" : `-${this.label}`}`; + } + /** * Check whether this version (local) is compatible with the given version (remote) *