Skip to content

Remove Lerna#3054

Open
mfedderly wants to merge 2 commits intomasterfrom
mf/remove-lerna
Open

Remove Lerna#3054
mfedderly wants to merge 2 commits intomasterfrom
mf/remove-lerna

Conversation

@mfedderly
Copy link
Copy Markdown
Collaborator

Removes the Lerna dependency entirely.

This loses any benefit of Lerna's task caching, but it does drop a massive number of dependencies that have tended to pop up Dependabot warnings for us.

It required replacing the lerna version step, which doesn't seem to have a proper replacement with the pnpm, so I just LLM'd a script to replace the package.json versions and do the git operations.

The prerelease script was already not working (the new publish lockdowns), so instead of migrating its publish step I just got rid of it.

Comment thread scripts/version.mts Outdated
Comment thread scripts/version.sh
pnpm --recursive exec npm version "$VERSION" --no-git-tag-version
git add .
git commit --no-verify -m "v$VERSION"
git tag -a "v$VERSION" -m "v$VERSION"
Copy link
Copy Markdown
Collaborator Author

@mfedderly mfedderly Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have any automation but this (entire file) also passes over at https://www.shellcheck.net/

Comment thread docs/PUBLISHING.md

- increment the version number of all packages, and create a local commit, without pushing to origin. This will also create a release tag.
- `pnpm lerna version --no-commit-hooks --no-push 7.0.0`
- `./scripts/version.sh 7.0.0`
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it isn't too late to get pnpm@11 to implement some more changes to the version command, so I filed a ticket over there and maybe we can throw away this version script eventually.

pnpm/pnpm#11348

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant