Skip to content

Commit

Permalink
Merge pull request #70 from artemv/custom-commands
Browse files Browse the repository at this point in the history
fix: support mixed project types
  • Loading branch information
artemv authored May 11, 2018
2 parents d91a8dc + d6b9b3f commit f56acca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dont-break.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ function dontBreakDependents (options, dependents) {
projects: dependents
}
}
la(check.arrayOf(check.object, dependents.projects) || check.arrayOfStrings(dependents.projects), 'invalid dependents', dependents.projects)
la(check.arrayOf(function (item) {
return check.object(item) || check.string(item)
}, dependents.projects), 'invalid dependents', dependents.projects)
debug('dependents', dependents)
if (check.empty(dependents)) {
return Promise.resolve()
Expand Down

0 comments on commit f56acca

Please sign in to comment.