diff --git a/index.js b/index.js index b1ed4a1..ee570f0 100644 --- a/index.js +++ b/index.js @@ -41,9 +41,11 @@ const checkCwdOption = options => { const normalizeOptions = (options = {}) => { options = { - ignore: [], - expandDirectories: true, ...options, + ignore: options.ignore || [], + expandDirectories: options.expandDirectories === undefined + ? true + : options.expandDirectories, cwd: toPath(options.cwd), };