mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 05:45:59 +08:00
14 lines
614 B
Diff
14 lines
614 B
Diff
diff --git a/index.js b/index.js
|
|
index d90f15316465ae517b5db02e9e52f49c7582a035..c216c8ca812204f22248522e0249e0fc79a531c4 100644
|
|
--- a/index.js
|
|
+++ b/index.js
|
|
@@ -38,7 +38,7 @@ function licensee (configuration, path, callback) {
|
|
.then(function (tree) {
|
|
var dependencies = Array.from(tree.inventory.values())
|
|
.filter(function (dependency) {
|
|
- return !dependency.isProjectRoot
|
|
+ return !dependency.isProjectRoot && dependency.package.name
|
|
})
|
|
if (configuration.filterPackages) {
|
|
dependencies = configuration.filterPackages(dependencies)
|