diff --git a/src/models/constructNewPackagePublishData.js b/src/models/constructNewPackagePublishData.js index 659fd349..5c575d20 100644 --- a/src/models/constructNewPackagePublishData.js +++ b/src/models/constructNewPackagePublishData.js @@ -63,7 +63,7 @@ module.exports = function constructNewPackagePublishData(opts = {}) { for (let i = 0; i < opts.tags.length; i++) { let curVer = semver.clean(opts.tags[i].name); - if (curVer !== LATEST_VER) { + if (curVer && curVer !== LATEST_VER) { out.versions[curVer] = buildAbsentVer(curVer, opts); } }