Skip to content

Commit bf9cf91

Browse files
Ignore node_modules and .git when globbing (#168)
1 parent 48124ab commit bf9cf91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ function loadGlobalMixin(helpers, globs) {
4848
let cwd = process.cwd()
4949
let files = globSync(globs, {
5050
caseSensitiveMatch: false,
51-
expandDirectories: false
51+
expandDirectories: false,
52+
ignore: ['**/node_modules/**', '**/.git/**']
5253
})
5354
let mixins = {}
5455
files.forEach(i => {

0 commit comments

Comments
 (0)