Skip to content

Commit

Permalink
fix: avoid non-updated local dependencies bump (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
davikawasaki authored Dec 30, 2020
1 parent 89a144b commit 9faeef6
Show file tree
Hide file tree
Showing 7 changed files with 10,939 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/updateDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ const getDependentRelease = (pkg, bumpStrategy, releaseStrategy, ignore) => {
// 1. Any local dep package itself has changed
// 2. Any local dep package has local deps that have changed.
const nextType = resolveReleaseType(p, bumpStrategy, releaseStrategy,[...ignore, ...localDeps]);
const nextVersion = p._preRelease ? getNextPreVersion(p) : getNextVersion(p);

// Set the nextVersion fallback to the last local dependency package last version
let nextVersion = p._lastRelease && p._lastRelease.version;

// Update the nextVersion only if there is a next type to be bumped
if (nextType) nextVersion = p._preRelease ? getNextPreVersion(p) : getNextVersion(p);
const lastVersion = pkg._lastRelease && pkg._lastRelease.version;

// 3. And this change should correspond to manifest updating rule.
Expand Down
Loading

0 comments on commit 9faeef6

Please sign in to comment.