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

Adding filter command-line option #323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mansona
Copy link
Contributor

@mansona mansona commented Jan 7, 2019

This is essentially the opposite of ignore. I wanted the ability to only update packages that are prefixed with my company's scope.

For example:

npm-check -y -f '@myorg/*'

will automatically bring all the packages prefixed with @myorg/ up to date. I have this working locally and it is working quite nicely 🎉 it even supports chaining filter with ignore rules:

npm-check -y -f '@myorg/*' -i @myorg/dont-update-me

README.md Outdated
@@ -144,6 +145,12 @@ Ignore dependencies that match specified glob.

`$ npm-check -i babel-*` will ignore all dependencies starting with 'babel-'.

#### `-f, --filter`

Ignore dependencies that match specified glob.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is "Ignore" used correctly here? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂 whoops! I've fixed it now 👍

@mokone91
Copy link

this feature is awesome! any updates?

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

Successfully merging this pull request may close these issues.

3 participants