Skip to content

Lerna version --sync-dist-version not update dependencies #4128

Open

Description

@trevisanfelipe

Current Behavior

When running the version with the --sync-dist-version parameter it only updates the package version, but does not update the dependencies version.

Expected Behavior

I need the dependencies to be updated in the dist package.json as well, because as I use the dist folder to publish, the dependencies are wrong.

Steps to Reproduce

I have a build that copies the package.json to the dist and when running ler version --sync-dist-version, it only updates the package version and not the dependencies as ler version does in the main package.json.

root -> package.json
image

dist -> package.json
image

Environment

Environment info:

System:
OS: Windows 11 10.0.22631
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz
Binaries:
Node: 20.17.0 - C:\Program Files\nodejs\node.EXE
npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
Utilities:
Git: 2.46.2. - /mingw64/bin/git
npmPackages:
lerna: ^8.1.8 => 8.1.9

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions