[MGNLFE-352] Upgrade Lerna Created: 13/Oct/22 Updated: 18/Dec/23 |
|
| Status: | Accepted |
| Project: | Magnolia Frontend Helpers |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Phong Le Quoc | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Template: |
|
||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||
| Epic Link: | SPA Editor Backlog | ||||||||||||
| Team: | |||||||||||||
| Description |
|
Our Lerna version is so old and we have no document on how it is used in our projects. It should be upgraded to the latest version and documented, ex: how to start the react-sample ... |
| Comments |
| Comment by Phong Le Quoc [ 11/Jan/23 ] |
|
More info: |
| Comment by Phong Le Quoc [ 22/Jun/23 ] |
|
The lerna version has been upgraded to the latest of 6.x recently in the other ticket. It might not able to upgrade to 7.x version because the 7.x version removed something related to lerna workspace. In the past, I have tried to use workspace of npm, however, I got problem with libraries because npm tried to use the same dependencies for all projects. From lerna page: BREAKING CHANGES We no longer include the bootstrap, add, and link commands by default. We strongly recommend using your package manager (npm, yarn, pnpm) for package management related concerns such as installing and linking dependencies.If you want to temporarily continue to use those commands in v7 you can do so by installing the @lerna/legacy-package-management package at the same version as your lerna version.There will not be any active work done on these commands and you should look to migrate as soon as possible, please check out https://lerna.js.org for further guidance. |