Skip to content

Commit

Permalink
fix: recognize package.json in the root target also
Browse files Browse the repository at this point in the history
This recognizes the root package.json as well as sub directories containing package.json

closes netlify#174
  • Loading branch information
talves committed Aug 16, 2019
1 parent a60729e commit 00eeee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exports.run = async function(dir) {
directory = functionsPath;
}

const findJSFiles = ["*/package.json", "!node_modules", "!**/node_modules"];
const findJSFiles = ["**/package.json", "!node_modules", "!**/node_modules"];
const foldersWithDeps = await globby(findJSFiles, { cwd: directory });

const folders = foldersWithDeps
Expand Down

0 comments on commit 00eeee7

Please sign in to comment.