diff --git a/buildScripts/bump-version.js b/buildScripts/bump-version.js index 6bcce267..24fae065 100644 --- a/buildScripts/bump-version.js +++ b/buildScripts/bump-version.js @@ -40,7 +40,7 @@ function assertVersion() { let vssExtensionJson = JSON.parse(vssExtension); let oldExtensionVersionSplit = vssExtensionJson.version.split('.'); assert.ok( - (oldExtensionVersionSplit[1] < requestedVersionSplit[1] && requestedVersionSplit[2] === 0) || // Minor release + (oldExtensionVersionSplit[1] < requestedVersionSplit[1] && requestedVersionSplit[2] === '0') || // Minor release (oldExtensionVersionSplit[1] === requestedVersionSplit[1] && oldExtensionVersionSplit[2] < requestedVersionSplit[2]), // Patch release 'Input version must be bigger than current version' );