Skip to content

Commit

Permalink
fix(publish): Avoid exception when publishing 1st version (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
royra committed May 24, 2020
1 parent c255d12 commit 5d80285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/publish/lib/get-unpublished-packages.js
Expand Up @@ -17,7 +17,7 @@ function getUnpublishedPackages(packageGraph, opts) {
const mapper = pkg =>
getPackument(pkg.name, opts).then(
packument => {
if (packument.versions[pkg.version] === undefined) {
if (packument.versions === undefined || packument.versions[pkg.version] === undefined) {
return pkg;
}
},
Expand Down

0 comments on commit 5d80285

Please sign in to comment.