From 3a48eb997ccbae6e725d229871f84373fb34a10c Mon Sep 17 00:00:00 2001 From: Aaron Casanova <32409546+aaronccasanova@users.noreply.github.com> Date: Sat, 1 Jul 2023 11:13:19 -0700 Subject: [PATCH] Fix `ignore` and `expandDirectories` default handling (#252) --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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), };