-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Lerna publish with pnpm workspace protocol is not updating package version when it is a dependency #3456
Comments
Hi @batusai513 Thank you for reporting this issue. Unfortunately, I was unable to reproduce this issue using the latest version of Lerna with the information that you have provided. In order for us to troubleshoot this issue, please kindly provide a minimal reproduction of the issue. You can use https://github.com/lerna/repro as a starting point. |
I face the same issue as described in the first comment.
Everything seems perfectly fine, but in the version published on NPM, the dependency version is still |
@fahslaj If I create a repro, should it publish to NPM? Or is there a way to tell lerna to keep the packed version locally rather than upload it to NPM? |
@Leksat You could publish it to npm. If you'd prefer not to, then you could use Verdaccio to host a private npm registry locally to test your repro. You would set your npm registry to the verdaccio url (something like http://localhost:4873), perform the publish, then navigate to that verdaccio url to check the published assets. |
@fahslaj lerna/repro#10 I hope it helps :) |
This should reduce Renovate's warnings. Also, this might help workaround lerna/lerna#3456
This should reduce Renovate's warnings. Also, this might help workaround lerna/lerna#3456
Also, I have found that there is no issue if dependency versions are set to Example
|
Thank you for the reproduction @Leksat ! I see the issue and will have a fix soon. |
The fix for this has been released in Lerna 6.6.1 🎉 |
Current Behavior
When I
lerna publish
, the dependencies that use the workspace protocol as version are not updated to the latest version in the generatedpackage.json
artifact uploaded to npm.Expected Behavior
When I run
lerna publish
all packages affected which are dependencies of other packages should also be updated.Steps to Reproduce
before lerna publish
after lerna publish in the repository code
But when installing the updated package from npm and inspection it's
package.json
file insidenode_modules
folderFailure Logs / Configuration
lerna.json
lerna-debug.log
Environment
The text was updated successfully, but these errors were encountered: