Skip to content

Commit

Permalink
Merge pull request #175 from talves/patch-1
Browse files Browse the repository at this point in the history
fix: recognize package.json in the root target also
  • Loading branch information
swyxio authored Aug 16, 2019
2 parents a60729e + 00eeee7 commit ed16464
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 ed16464

Please sign in to comment.