Open vonagam opened 6 years ago
Another example is stuff you might have in a global .gitignore
, like .DS_Store
files or personal conventions like IDEAS.md
.
@issuehuntfest has funded $80.00 to this issue. See it on IssueHunt
If anyone wants to work on this, see the initial attempt and feedback in https://github.com/sindresorhus/globby/pull/107. This issue is blocked by https://github.com/mrmlnc/fast-glob/issues/265.
I may have a solution for this, we can find root .git
directory, and glob .gitignore
from there.
@sindresorhus is doing what @fisker suggested can be done in globby itself? I am not familiar with your codebase, but I am using globby and did it myself in my codebase instead. If this mechanism was in globby itself that would be awesome. I am willing to look into it if you are up for it.
Currently only gitignores from cwd and down are taken into account for gitignore filtering. What about those who are higher in a hierarchy?
Use case: monorepo repositories (like babel for example), where gitignore is placed in root and individual packages do not have their own.