Skip to content

Commit

Permalink
refactor(publish): swap snapshot call of unpublished packages helper
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Dec 19, 2018
1 parent 2713ab8 commit 111053b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/publish/index.js
Expand Up @@ -261,7 +261,7 @@ class PublishCommand extends Command {
// attempting to publish a release with local changes is not allowed
chain = chain.then(() => this.verifyWorkingTreeClean());

chain = chain.then(() => getUnpublishedPackages(this.project, this.conf));
chain = chain.then(() => getUnpublishedPackages(this.project, this.conf.snapshot));
chain = chain.then(unpublishedPackages => {
if (!unpublishedPackages.length) {
this.logger.notice("from-package", "No unpublished release found");
Expand Down
2 changes: 1 addition & 1 deletion commands/publish/lib/get-unpublished-packages.js
Expand Up @@ -12,7 +12,7 @@ function getUnpublishedPackages(project, opts) {
let chain = Promise.resolve();

const mapper = (unpublished, pkg) =>
getPackument(pkg.name, opts.snapshot).then(
getPackument(pkg.name, opts).then(
packument => {
if (packument.versions[pkg.version] === undefined) {
unpublished.push(pkg);
Expand Down

0 comments on commit 111053b

Please sign in to comment.