JamieMason / JamieMason/syncpack

`versionGroups.*.policy === 'sameRange'` not respected

Open
#298 1 comment 1 reaction 0 assignees View on GitHub
Type: Fix
Dominant language
Rust
Stars
2.1k
Forks
72
PR merge metrics
No merged PRs in 30d

Description

### Syncpack version

14.0.0-alpha.12

### Operating system(s)

Mac

### Steps to reproduce

```sh
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

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

### Optional comments

Duplicate of https://github.com/JamieMason/syncpack/issues/280

### Code of Conduct

- [x] I agree to follow the [Code of Conduct](https://github.com/JamieMason/syncpack/blob/main/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Research direction

Start with the minimal npm reproduction in the issue and compare it with duplicate issue #280. Trace how the `versionGroups` configuration and `sameRange` policy are handled, then confirm that the command reports the mismatched nx package versions as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.