Skip to content

Commit

Permalink
Extends node_modules directory exclusion to cwd subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenoist committed Apr 22, 2021
1 parent e02992e commit 1e1439e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function parseIgnorePaths(path, defaultValue) {
const fp = p.trim()
if (fp.match(/\bnode_modules\b/)) {
// exact node_module match. Ignore entire DIR
return '!node_modules/**'
return '!**/node_modules/**'
}
if (!fp.match(/^!/)) {
return `!${fp}`
Expand Down

0 comments on commit 1e1439e

Please sign in to comment.