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

feat(lerna): migrate to 7 #1257

Merged
merged 3 commits into from
Jun 14, 2023
Merged

feat(lerna): migrate to 7 #1257

merged 3 commits into from
Jun 14, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 13, 2023

Bumps lerna from 6.6.2 to 7.0.1.

Release notes

Sourced from lerna's releases.

7.0.1

7.0.1 (2023-06-13)

Bug Fixes

  • core: reset nx daemon after command finishes (#3726) (c0de66a)

7.0.0

7.0.0 (2023-06-08)

BREAKING CHANGES

After updating we strongly recommend running lerna repair in your project. This will migrate your lerna.json to the latest and greatest and remove any outdated options.

As this is a major release there are a few breaking changes to be aware of, which may or may not affect your lerna repos, depending on how you are using the tool.

  • legacy package management commands have been removed

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.

There will not be any active work done on these commands and you should look to migrate as soon as possible.

For full context how why we made this change and how you can migrate your projects, please read our detailed guide here: https://lerna.js.org/docs/legacy-package-management

  • Workspaces are used by default and useWorkspaces has been removed

We now use your package manager's workspaces configuration by default in order to resolve packages for lerna to operate on. If you wish to customize the packages that lerna will operate on, you can still use a packages property in your lerna.json just as you did before, but there is no longer any need for a useWorkspaces flag. If the packages property is present, lerna will use that, otherwise it will try and read your workspaces configuration.

Running lerna repair will automatically remove useWorkspaces from your lerna.json for you.

NOTE: If you are using pnpm as your package manager, it is important to set "npmClient": "pnpm" in your lerna.json so that lerna knows to look for a pnpm-workspaces.yaml file and not just check your root package.json.

  • lerna init can no longer be run on an existing lerna repo

It was a confusing behavior that lerna init could be run on an existing lerna repo and would attempt to coerce its setup to something closer to a fresh repo, so we have removed this behavior and lerna will hard error if it detects the directory is already initialized.

You can run lerna repair at any time to update your configuration to the latest and greatest.

  • long deprecated options have been removed

The following options (on the left of the => in each case) have been deprecated for many years (since before we took over stewardship of the project) and have finally been removed. If you are using them in your lerna.json all you need to do is run lerna repair and it will automatically migrate you to their modern equivalent. If you are passing them in on the command line, you will need to update your usage as follows:

  • --includeFilteredDependencies => --includeDependencies
  • --includeFilteredDependents => --includeDependents
  • --githubRelease => --createRelease=github
  • --skipGit => --push=false --gitTagVersion=false
  • --repoVersion => [positional bump]
  • --cdVersion => [positional bump]
  • --npmTag => --distTag

... (truncated)

Changelog

Sourced from lerna's changelog.

7.0.1 (2023-06-13)

Note: Version bump only for package lerna

7.0.0 (2023-06-08)

Bug Fixes

Features

  • add migration for adding $schema, increase some strictness (73ceac3)

7.0.0-alpha.8 (2023-06-07)

Bug Fixes

Features

  • add migration for adding $schema, increase some strictness (73ceac3)

7.0.0-alpha.7 (2023-06-05)

Bug Fixes

Features

  • add migration for adding $schema, increase some strictness (73ceac3)

7.0.0-alpha.6 (2023-06-02)

Bug Fixes

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from alimd as a code owner June 13, 2023 12:02
@dependabot dependabot bot added ci Work that improves the continuous integration. dependencies Change in project dependencies. maintenance Generic maintenance tasks. priority-low Nice addition, maybe... someday... labels Jun 13, 2023
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lerna-7.0.1 branch from 76654cd to 90a49fe Compare June 14, 2023 12:29
@alimd alimd added the major This PR causes a major bump in the version number. label Jun 14, 2023
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/lerna-7.0.1 branch 10 times, most recently from 856140f to acfc867 Compare June 14, 2023 13:48
Bumps [lerna](https://github.com/lerna/lerna/tree/HEAD/packages/lerna) from 6.6.2 to 7.0.1.
- [Release notes](https://github.com/lerna/lerna/releases)
- [Changelog](https://github.com/lerna/lerna/blob/main/packages/lerna/CHANGELOG.md)
- [Commits](https://github.com/lerna/lerna/commits/7.0.1/packages/lerna)

---
updated-dependencies:
- dependency-name: lerna
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@alimd alimd force-pushed the dependabot/npm_and_yarn/lerna-7.0.1 branch from acfc867 to 280e6b1 Compare June 14, 2023 13:53
@alimd alimd changed the title chore(deps-dev): bump lerna from 6.6.2 to 7.0.1 feat(lerna): migrate to 7 Jun 14, 2023
@alimd alimd merged commit 9892dec into next Jun 14, 2023
@alimd alimd deleted the dependabot/npm_and_yarn/lerna-7.0.1 branch June 14, 2023 14:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ci Work that improves the continuous integration. dependencies Change in project dependencies. maintenance Generic maintenance tasks. major This PR causes a major bump in the version number. priority-low Nice addition, maybe... someday...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant