Skip to content

Commit

Permalink
refactor(publish): Condense refresh() after pack
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Dec 18, 2018
1 parent 9badeb4 commit 5bf0c13
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions commands/publish/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,9 @@ class PublishCommand extends Command {

logPacked(packed);

return pkg;
// manifest may be mutated by any previous lifecycle
return pkg.refresh();
}),

// manifest may be mutated by any previous lifecycle
pkg => pkg.refresh(),
].filter(Boolean)
);

Expand Down

0 comments on commit 5bf0c13

Please sign in to comment.