Skip to content

fix(update): target option is being applied relative to newest version #303

@JamieMason

Description

@JamieMason

Syncpack version

14.0.0-alpha.21

Operating system(s)

Mac

Steps to reproduce

Run and compare

  • syncpack update --check --dependencies react --target patch
  • syncpack update --check --dependencies react --target minor
  • syncpack update --check --dependencies react

Expected behavior

For each instance, suggest the highest available version which is within the --target distance of that instance's version.

Actual behavior

The suggested version is always ^19.1.1 at the time of writing, the only thing that changes is which instances are within the --target distance of that latest version.

Contents of syncpack configuration file

Optional comments

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions