-
Notifications
You must be signed in to change notification settings - Fork 125
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
Please add { dot: true, matchBase: true } to minimatch options #35
Comments
with OR remove the './' before matching with minimatch I thinkg the only workaround right now is to match: the
in config:
Edit: no need to escape backslash in yaml |
Actually this does not work either, I think the best solution is to remove the const format = (str: string) => str.replace(/^\.\//, '');
const result = micromatch.isMatch(args.path, args.pattern, { format }); Or use this: excluded_globs: "(./)?**/node_modules/**/*;(./)?**/dist/**/*;(./)?**/lib/**/*;(./)?**/built/**/*;(./)?**/public/**/*;(./)?**/.cache/**/*" |
thanks for digging into this! I think my update should do the trick - let me know if you have any unsolved cases! |
Steps to reproduce this issue:
Set
excluded_globs: "**/node_modules/**,**/dist/**,**/lib/**,**/built/**,**/public/**,**/.cache/**"
to exclude nested files in a monorepoLike this
Expected
E.g. files inside /packages/*/.cache are ignored
Actual behavior
files inside /packages/*/.cache are not ignored by minimatch
There is a bunch of bugs with the default minimatch options
Minimatch options:
Related issues:
The text was updated successfully, but these errors were encountered: