Upgrading Yarn to V2 and Dropping Lerna #4464
spacesailor24
started this conversation in
General
Replies: 1 comment
-
That pretty outdated article, it was testing first release candidate of yarn2 :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1.x
uses
-
npm
-
lerna
(in fixed mode)4.x
uses
-
yarn
: package manager, with workspace support (handles local package linking and not duplicating package dependency installs)-
lerna
(in independent mode): handles runningpackage.json
scripts for each package (can be replaced by yarn workspaces), but does not handle package versioning and publishing (currently it's a manual process)These are the decisions that need to be made for
4.x
:package.json
scripts for each package, Yarn workspaces provides this featureindependent
method (and usefixed
as in1.x
), we get the benefit of Lerna managing updating package versions and publishing each package to NPMindependent
, it is my naive recommendation to drop the use of Lerna and just write simple scripts to update package versions and publish to NPM (although I have no idea what kind of can of worms may be awaiting us)independent
method and they found it to be a headache to deal with updating package versions for each dependent package, and decided to revert tofixed
Beta Was this translation helpful? Give feedback.
All reactions