Skip to content

Commit

Permalink
If there's npm@3 metadata, then use that to filter the package list
Browse files Browse the repository at this point in the history
  • Loading branch information
iarna committed Aug 13, 2015
1 parent 443031e commit c649fbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions default-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function readDeps (test) { return function (cb) {
try { p = JSON.parse(p) }
catch (e) { return next() }
if (!p.version) return next()
if (p._requiredBy) {
if (!p._requiredBy.some(function (req) { return req === '#USER' })) return next()
}
deps[d] = config.get('save-exact') ? p.version : config.get('save-prefix') + p.version
return next()
})
Expand Down

0 comments on commit c649fbe

Please sign in to comment.