diff --git a/index.js b/index.js index 3b602af..3574ee2 100644 --- a/index.js +++ b/index.js @@ -20,7 +20,7 @@ function safeCheck(file) { } module.exports = (patterns, opts) => { - opts = Object.assign({}, opts); + opts = Object.assign({expandDirectories: false, nodir: false}, opts); const force = opts.force; delete opts.force; @@ -46,7 +46,7 @@ module.exports = (patterns, opts) => { }; module.exports.sync = (patterns, opts) => { - opts = Object.assign({}, opts); + opts = Object.assign({expandDirectories: false, nodir: false}, opts); const force = opts.force; delete opts.force; diff --git a/package.json b/package.json index 648da57..77d3a9a 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "filesystem" ], "dependencies": { - "globby": "^6.1.0", + "globby": "^7.1.1", "is-path-cwd": "^1.0.0", "is-path-in-cwd": "^1.0.0", "p-map": "^1.1.1",