diff --git a/index.js b/index.js index dcb45c7..b06f9bf 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,7 @@ function safeCheck(file) { } module.exports = async (patterns, {force, dryRun, ...options} = {}) => { + options = {expandDirectories: false, onlyFiles: false, followSymbolicLinks: false, ...options}; const files = await globby(patterns, options); const mapper = async file => { @@ -40,6 +41,7 @@ module.exports = async (patterns, {force, dryRun, ...options} = {}) => { }; module.exports.sync = (patterns, {force, dryRun, ...options} = {}) => { + options = {expandDirectories: false, onlyFiles: false, followSymbolicLinks: false, ...options}; return globby.sync(patterns, options).map(file => { if (!force) { safeCheck(file); diff --git a/package.json b/package.json index b663962..92c8e62 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ ], "dependencies": { "@types/glob": "^7.1.1", - "globby": "^6.1.0", + "globby": "^10.0.0", "is-path-cwd": "^2.0.0", "is-path-in-cwd": "^2.0.0", "p-map": "^2.0.0",