Skip to content
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

refactor: replace lerna with maintained fork lerna-lite #4404

Merged
merged 2 commits into from
Sep 21, 2022

Conversation

aweiss-dev
Copy link
Member

@aweiss-dev aweiss-dev commented Sep 21, 2022

With the introduction of yarn 2 and its advanced workspace capabilities (like pnpm) we will have an easier time referring to other packages via the workspace protocol (https://yarnpkg.com/features/workspaces#workspace-ranges-workspace).

The following problem occurs now:

Since we use lerna to publish, we rely on lerna to support the new yarn command, that is used to replace the "workspace" version with the latest version numbers. This ticket (lerna/lerna#2564) mentions active work on the feature, but it is two years old, and the feature is not implemented yet.

Since lerna is not very actively maintained and doesn't support newer protocols like "workspaces" from yarn 2 and pnpm, a switch to the actively maintained lerna-lite needs to happen. Lerna-lite takes a new approach to lerna, is fully written in Typescript, includes the workspace - protocol already and is actively maintained (https://github.com/ghiscoding/lerna-lite).

It should be a drop in replacement because lerna-lite uses the workspace-protocol under the hood and recommends using workspaces as dependencies inside the packages (https://github.com/ghiscoding/lerna-lite/tree/main/packages/version#workspace-protocol)

@aweiss-dev aweiss-dev marked this pull request as ready for review September 21, 2022 08:32
@aweiss-dev aweiss-dev changed the title chore: replace lerna with maintained fork lerna-lite refactor: replace lerna with maintained fork lerna-lite Sep 21, 2022
@aweiss-dev aweiss-dev merged commit bfa4b3f into main Sep 21, 2022
@aweiss-dev aweiss-dev deleted the chore/lerna_replacement branch September 21, 2022 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants