Skip to content

versionGroups.*.policy === 'sameRange' not respected #298

@fregante

Description

@fregante

Syncpack version

14.0.0-alpha.12

Operating system(s)

Mac

Steps to reproduce

npm init -y
npm pkg set dependencies.nx=21.3.0 dependencies.@nx/js=21.3.1 dependencies.@nx/eslint=21.3.2
npx -y syncpack@alpha lint

This is the minimal repro. It's not a monorepo but the issue is the same: I want all versions to match, even in the same (root) package.json

Expected behavior

It should report that the versions are not in the same range

Actual behavior

✓ No issues found

Contents of syncpack configuration file

{
  "versionGroups": [
    {
      "dependencies": ["@nx/*", "nx"],
      "policy": "sameRange"
    }
  ]
}

Optional comments

Duplicate of #280

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions