-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore subdirectories pattern #105
Comments
I know this is an old issue, so chances are this is long solved. However in case anyone else happens to look at this issue for a solution: Not exactly I think doing |
I will try this @braydonk , but as the team of doublestar mentioned they do not support I think I tried |
@braydonk I make the hypothesis that it does not based on the result after executing:
|
I made a quick test project that only installed I got the command to run with a couple changes:
2 things I needed to fix:
The ignore path in quotes thing could use some documentation, and probably some usage examples. |
yeah, this is one thing about ignore that I really don't love, but there's also little we can do about it. The difference between a quoted and unquoted ignore value have completely different meanings.... unquoted is interpreted by your shell, and quoted is passed to doublestar. I recall there being another issue where someone ran into this, bit I can't find it. I just noticed the readme file uses unquoted values in example and doesn't discuss this issue at all, which I'll work on fixing. |
@braydonk did you include nested packages with I execute the command you pasted: Tried to put the match pattern Also tried matching with To replicate also, a similar yarn workspace is here: https://github.com/konsalex/enterprise-design-system-course/tree/l6-3 |
The reason it matched everything is because you also had
That's because the implementation uses
However it always matches the |
I believe there is a bug or discussion somewhere about using doublestar for searching as well. I can't remember what the blocker at the time was 😕 |
Maybe a bug, not sure @braydonk, but at least I have a workaround that works. In any case thanks for the help, @braydonk & @willnorris 😄 |
Hey folks,
Is there any way to ignore subdirectories based on the directory name? We currently have a lerna monorepo and I find it difficult to exclude multiple
node_modules
folders.The optimal would be to use it like this
but it doesn't seem to work.
The directories also are in the following tree structure
The text was updated successfully, but these errors were encountered: