Add missing default for `options`

master
Sven Slootweg 8 years ago
parent b659a3f261
commit f7ba152952

@ -29,7 +29,7 @@ function reachedRoot(candidatePath) {
return /^(?:\/|[a-z]:\\)$/i.test(candidatePath);
}
module.exports = function(options) {
module.exports = function(options = {}) {
let currentPath = defaultValue(options.basePath, __dirname);
let checker = defaultValue(options.checker, "package.json");

Loading…
Cancel
Save