We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02b49a5 commit fad0046Copy full SHA for fad0046
.changeset/plenty-loops-fly.md
@@ -0,0 +1,5 @@
1
+---
2
+"git-json-resolver": patch
3
4
+
5
+Do not walk through node_modules
lib/src/utils.ts
@@ -58,7 +58,9 @@ export const listMatchingFiles = async (options: CollectFilesOptions): Promise<F
58
59
if (entry.isDirectory()) {
60
/* v8 ignore next */
61
- await walk(fullPath);
+ if (!/node_modules/.test(entry.name)) {
62
+ await walk(fullPath);
63
+ }
64
} else if (fileFilter(fullPath)) {
65
try {
66
const content = await fs.readFile(fullPath, "utf8");
0 commit comments