Skip to content
Browse files

ignore non-json package.json files

It's annoying, but they do exist in the wild.
  • Loading branch information...
1 parent d8714fb commit 7bca3d3c90738ec5bab4a6759157d52c7c116e7c @isaacs isaacs committed Mar 9, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 fstream-npm.js
View
3 fstream-npm.js
@@ -188,8 +188,7 @@ Packer.prototype.readRules = function (buf, e) {
try {
var p = this.package = JSON.parse(buf)
} catch (er) {
- er.file = path.resolve(this.path, e)
- this.error(er)
+ // just pretend it's a normal old file, not magic at all.
return []
}

0 comments on commit 7bca3d3

Please sign in to comment.
Something went wrong with that request. Please try again.