Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Commit

Permalink
ignore non-json package.json files
Browse files Browse the repository at this point in the history
It's annoying, but they do exist in the wild.
  • Loading branch information
isaacs committed Mar 10, 2013
1 parent d8714fb commit 7bca3d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fstream-npm.js
Expand Up @@ -188,8 +188,7 @@ Packer.prototype.readRules = function (buf, e) {
try { try {
var p = this.package = JSON.parse(buf) var p = this.package = JSON.parse(buf)
} catch (er) { } catch (er) {
er.file = path.resolve(this.path, e) // just pretend it's a normal old file, not magic at all.
this.error(er)
return [] return []
} }


Expand Down

0 comments on commit 7bca3d3

Please sign in to comment.