Open Hotell opened 7 months ago
I actually landed a change for this a while ago https://github.com/nrwl/nx/pull/20607 but we needed to revert it after unexpected consequences with our native packages.
We can add back more fine-grained control over how dependencies are updated (always vs out-of-range)
Any updates on this @JamesHenry ?
Facing the same issue on my repo http://github.com/tinesoft/nxrocks...
@Hotell actually this one is a different, we do not currently evaluate the semver range and check if there is a match or not and alter the behaviour accordingly.
The enhancement you linked to relates to respecting or updating the prefix when writing the new version number, e.g. always prepend ~
or ^
, or respect whatever the existing prefix is (by default).
I'll leave this one open until we offer an option to conditionally update versions only if an existing range (or *
) is not a match. As mentioned the one that landed a special case for *
https://github.com/nrwl/nx/pull/20607 caused weird side-effects initially and was reverted
Current Behavior
yarn nx release version patch -g <group-name> -d
updates package.json dependencies to following:
Expected Behavior
if dependency version is non numeric/prerelase it should ignore changing those
GitHub Repo
https://github.com/microsoft/fluentui/pull/30251
Steps to Reproduce
yarn nx release version patch -g northstar -d
Nx Report
Failure Logs
No response
Package Manager Version
yarn
Operating System
Additional Information
No response