Skip to content

Commit 06e0362

Browse files
authored
Merge pull request #590 from crytic/nisedo-patch-1
Update is_dependency() in foundry.py to add node_modules
2 parents a30937e + 8760d30 commit 06e0362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crytic_compile/platform/foundry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def is_dependency(self, path: str) -> bool:
165165
"""
166166
if path in self._cached_dependencies:
167167
return self._cached_dependencies[path]
168-
ret = "lib" in Path(path).parts
168+
ret = "lib" in Path(path).parts or "node_modules" in Path(path).parts
169169
self._cached_dependencies[path] = ret
170170
return ret
171171

0 commit comments

Comments
 (0)