Skip to content

Commit

Permalink
Fix fail for package.json without allow field
Browse files Browse the repository at this point in the history
Closes GH-74.
  • Loading branch information
conorhastings authored and wooorm committed Feb 9, 2016
1 parent e78d9c3 commit 191b0b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ globby(globs).then(function (filePaths) {
contents = JSON.parse(file.contents);

if (file.basename() === PACKAGE) {
contents = contents[PACKAGE_FIELD];
contents = contents[PACKAGE_FIELD] || {};
}

allow = [].concat.apply(allow, contents.allow);
Expand Down

0 comments on commit 191b0b2

Please sign in to comment.