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

Feature: exclude pattern #195

Open
splincode opened this issue Jun 18, 2020 · 4 comments
Open

Feature: exclude pattern #195

splincode opened this issue Jun 18, 2020 · 4 comments

Comments

@splincode
Copy link

$ sort-package-json "**/package.json"

affected node_modules/**/package.json

$ sort-package-json "**/package.json"  "!**/node_modules/**/package.json" "!**/dist/**/package.json",

sorted only my package.json and packages/**/package.json

@fisker
Copy link
Collaborator

fisker commented Jun 18, 2020

How about we ignore them by default? By setting this to true

@splincode
Copy link
Author

Good point

@in-in
Copy link

in-in commented Feb 25, 2024

How to use gitignore option in cli?

@dror-weiss
Copy link

@in-in, did you find a solution?

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

4 participants