-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workspace peerDependencies should be specified without ^
#7373
Comments
@pmconne @aruniverse, 5.0 seems like a good time to fix this oversight. We're willing to make the change, but would first like to get your agreement that this needs to be fixed. |
fyi @wgoehrig |
I made one more sample to show why peerDependencies between itwinjs-core packages should be specified without For example This is quite an extreme example but it can be encountered accidentally if This could be mitigated by removing |
Describe the bug
Because all packages in this repo are released in lockstep and they are using
@internal
APIs between each other, workspace peerDependencies should be specified without^
to enforce that same version of packages will be installed by the package manager. At the moment all workspace peerDependencies are specified with^
and package manager might resolve some of them to a different (higher) version ifauto-install-peers
are enabled.Specifying peerDependencies without
^
would result in warning/error during installation.To Reproduce
Steps to reproduce the behavior:
@itwin/core-frontend
and@itwin/core-common
versions.Expected behavior
Warning or error should be produced by package manager during installation if different versions of locked step packages are installed.
The text was updated successfully, but these errors were encountered: