Skip to content

Commit 3a48eb9

Browse files
Fix ignore and expandDirectories default handling (#252)
1 parent 5f7ceae commit 3a48eb9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ const checkCwdOption = options => {
4141

4242
const normalizeOptions = (options = {}) => {
4343
options = {
44-
ignore: [],
45-
expandDirectories: true,
4644
...options,
45+
ignore: options.ignore || [],
46+
expandDirectories: options.expandDirectories === undefined
47+
? true
48+
: options.expandDirectories,
4749
cwd: toPath(options.cwd),
4850
};
4951

0 commit comments

Comments
 (0)