Skip to content

Commit

Permalink
Merge pull request #63 from brettz9/filterPackages
Browse files Browse the repository at this point in the history
`filterPackages` callback option
  • Loading branch information
kemitchell committed May 17, 2020
2 parents e8e3f19 + f692c07 commit 4d763f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ function licensee (configuration, path, callback) {
// the dependency graph.
readFilesystemTree(function (error, packages) {
if (error) callback(error)
else withTrees(packages, false)
else {
if (configuration.filterPackages) {
packages = configuration.filterPackages(packages)
}
withTrees(packages, false)
}
})
}
}
Expand Down

0 comments on commit 4d763f4

Please sign in to comment.