Skip to content

Commit

Permalink
Fix normalizeOptions defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronccasanova committed Jun 30, 2023
1 parent 5f7ceae commit 81ecad8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Expand Up @@ -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),
};

Expand Down

0 comments on commit 81ecad8

Please sign in to comment.