Skip to content

Commit

Permalink
Fix ignore and expandDirectories default handling (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronccasanova authored Jul 1, 2023
1 parent 5f7ceae commit 3a48eb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
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 3a48eb9

Please sign in to comment.