Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Howdy @JamieMason , thanks for providing syncpack to the JavaScript community!
I'd like your feedback on this pull request. I work at a company that would like to use this tool, but we need it to support one more feature: the ability to only sync certain packages.
The use case is: Our root packages.json has a number of dependencies that we don't want to sync with child folders that contain package.json files; we selectively would like to enable the packages that we sync.
The current workaround we use is to pipe the output of the syncpackage "list" command into a script that has these dependencies of interest hardcoded, and checks to make sure the version list length for those dependencies is not > 1. We figured this PR would be a better solution and one that would be useful to others, too.
The reason I chose a regex instead of list of exact string matches is that we have instances where we'd like to sync all internal packages, say @companyname/.*, and the regex seems less fragile than hardcoding one packages at a time.
Let me know if there's anything I can do to make it easier to review on your end. Thanks!