[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:
relation
is related to MGNLFE-351 Strange Angular project structure Open
is related to MGNLFE-350 Apply the same code format and linter... Closed
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: DeveloperX

 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. 
Generated at Mon Feb 12 05:46:35 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.