Skip to content

Commit

Permalink
- In programmatic licensee, allow filterPackages callback to filter…
Browse files Browse the repository at this point in the history
… which packages have their children processed
  • Loading branch information
brettz9 committed Mar 27, 2020
1 parent 09706be commit f692c07
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 f692c07

Please sign in to comment.