diff --git a/src/index.js b/src/index.js index f0d9e1c..d7084a9 100644 --- a/src/index.js +++ b/src/index.js @@ -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");