From 81ecad846a757236ab31f5bf897ae89152f7b2e0 Mon Sep 17 00:00:00 2001 From: Aaron Casanova Date: Thu, 29 Jun 2023 21:38:52 -0700 Subject: [PATCH] Fix normalizeOptions defaults --- 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), };