Skip to content

Commit

Permalink
update all change dependants in script/release-candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbot committed Jun 19, 2018
1 parent 08bd474 commit ccfd033
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions script/release-candidate
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,14 @@ const increment = (version, by, preid) => {

const updateDependants = (pkg, pkgs) => {
return pkgs.filter(other => {
return depFields.some(field => {
let changed = false
depFields.forEach(field => {
if (other[field] && (pkg.name in other[field])) {
other[field][pkg.name] = pkg.version
return true
changed = true
}
})
return changed
})
}

Expand Down

0 comments on commit ccfd033

Please sign in to comment.