`--sync-workspace-lock` not working with `lerna version`
See original GitHub issueDescribe the bug
I’m not sure if this is design behavior, --sync-workspace-lock
maybe only is only meaningful for lerna release
, but I don’t have a new version to release yet so I can’t try with lerna release
. 🤣
Expectation
Run lerna version --sync-workspace-lock
should changes pnpm-lock.yaml.
Reproduction
Clone https://github.com/johnsoncodehk/volar and run and run $ pnpm i && npm run version:test
.
Lerna config and logs
lerna.json
{
"packages": [
"extensions/*",
"packages/*"
],
"version": "0.37.3"
}
Environment Info
| Executable | Version |
| ----------------- | ------- |
| `lerna --version` | 4.0.0 |
| `npm --version` | 8.5.5 |
| `yarn --version`. | 1.22.4 |
| `pnpm --version` | 7.0.0 |
| `node --version` | v16.15.0 |
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
lerna-lite/README.md at main - GitHub
When run, this command does the following: Identifies packages that have been updated since the previous tagged release. Prompts for a new version....
Read more >@lerna-lite/publish - npm
Start using @lerna-lite/publish in your project by running `npm i ... packages where the latest version is not present in the registry.
Read more >Troubleshooting | Lerna
Troubleshooting. This document contains solutions for certain issues our users encountered in the past while using Lerna.
Read more >Lerna always lists all packages ready to publish when running ...
the step which I run lerna updated in my github actions workflow always tells/lists me all the package are available to publish which...
Read more >Starting with Monorepos using Lerna - Joel H. Gomez Paredes
To solve some problems we can use a tool called Lerna. ... Fixed/Locked (default): All packages have the same version specified in lerna.json....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t know it, but I think I will not use
workspace:
after take a look, because it’s only works for pnpm publish, but the pakcages in https://github.com/johnsoncodehk/volar/tree/master/extensions are is use vsce not pnpm to release. If I only useworkspace:
for https://github.com/johnsoncodehk/volar/tree/master/packages packages it brings some inconsistencies and confusion to the project. But thanks for let me know it!Please trust your decision more in the repo. 😃
I always prefer 1. if I can, because more explicit behavior means less code, less documentation, and more predictability to me. But I believe peoples have different expectations.
I’m think large projects just can’t move so fast to migrate to lerna-lite in a short period of time, but I would definitely recommend lerna-lite to others. 😉