Skip to content
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 option does not work #40

Open
mnebuerquo opened this issue Jan 27, 2021 · 1 comment
Open

--ignore option does not work #40

mnebuerquo opened this issue Jan 27, 2021 · 1 comment

Comments

@mnebuerquo
Copy link

I'm trying to use this in a monorepo with symlinked packages. In my package.json I have my monorepo packages set with file: links. In node_modules these are symlinked to the path in the monorepo, outside the node_modules path. I'm using this inside of Docker, but I don't think that should affect the pattern matching or ignore. Docker might affect the symlinks though.

I tried --ignore="directory-name" and --ignore="@mynamespace/mypackage" and it still removed files from those packages which should have been ignored.

I tried --follow-symlinks=false and that didn't stop it, but I'm also not sure how that option is supposed to work.

Maybe I'm using it wrong, in which case maybe the docs need to be more clear.

@bjruberg
Copy link

I only see an effect when I specifically list the pattern that causes the deletion. So, when I add --ignore *.html it works, but package names are ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants