-
-
Notifications
You must be signed in to change notification settings - Fork 67
Description
Description
Note
I created a reproducible repo that includes more details -- https://github.com/ardelato/syncpack-config-ooo-repo/tree/main.
I've encountered unexpected behaviors with lint-semver-ranges and list-mismatches commands when using a configuration file with both versionGroup and semverGroup policies.
There seems to be an underlying behavior that is not communicated properly or the behavior itself is a bug.
Issues
-
lint-semver-rangesCommand: -
list-mismatchesCommand:-
Expected: The command should solely consider
versionGrouppolicies for identifying mismatches. For instance, mismatches like thelodashpeerDependencyinpackageBshould not be flagged if they do not fall under anyversionGrouprange definition.

-
Actual: The
lodashpeerDependencyinpackageBwas flagged as an error when usingwithVersionGroup.mjs, indicating a possible unintended consideration of thesemverGrouppolicies.

-
I tried looking at the syncpack docs to see if there was any mention that could explain this behavior and only found this - https://jamiemason.github.io/syncpack/guide/getting-started/
From this callout, I would still have expected the relevant group's policies to take precedence given the output of the commands.
Overall, Syncpack is a very handy tool so if you need further information or help, please let me know!


