Skip to content

Commit

Permalink
Fix ignore minimatch to include folders starting with dot
Browse files Browse the repository at this point in the history
for example during npm install there is a temp folder called .staging and we don't want to listen to those files

Signed-off-by: Amiram Wingarten <[email protected]>
  • Loading branch information
amiramw committed Jun 23, 2020
1 parent 3090899 commit 7f729f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class NsfwFileSystemWatcherServer implements FileSystemWatcherServer {
}
}));
this.watcherOptions.set(watcherId, {
ignored: options.ignored.map(pattern => new Minimatch(pattern))
ignored: options.ignored.map(pattern => new Minimatch(pattern, { dot: true }))
});
}

Expand Down

0 comments on commit 7f729f2

Please sign in to comment.