Skip to content

Commit c794fe5

Browse files
committed
Fixed issue with empty path causing no files to be found.
1 parent cf18730 commit c794fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const findPackageFileInPath = input => {
6262
*/
6363

6464
const formatPathsArrayToIgnore = paths =>
65-
paths.map(path => `!${path.replace(/^!/u, '')}`);
65+
paths.filter(path => path).map(path => `!${path.replace(/^!/u, '')}`);
6666

6767
/**
6868
* Sets default configuration values.

0 commit comments

Comments
 (0)