Skip to content

Not resoved * in peerDependencies #3637

Closed as not planned
Closed as not planned

Description

@a-zana

I have a workspace created with nrwl wiht inside 2 angular libraries (a, b). The are some dependecies between them that i describe in every package.json as peerDependencies:

packages/b/pakage.json

"name": "b",
"version": "1.0.0",
"peerDependencies": {
  "a": "*"
},
"devDependencies": {
  "a": "1.0.0"
}

Current Behavior

Do increase the version i run:

npx lerna version 2.0.0 --no-git-tag-version --force-publish

the version 1.0.0 inside the devDependencies is correctly advanded

if I do a build of all the libraries the * is not resolved and the peerDependencies will keep on having * inside

Expected Behavior

That during the buidl process or before with a specific lerna command is possible to resolve the * with the current version

Steps to Reproduce

create a workspace with two project inside, add a dependency between them using the * in the peerDependencies

Activity

  1. fahslaj commented on Jun 29, 2023

    @fahslaj
    Contributor

    Hi @a-zana , Lerna intentionally does not substitute or update peer dependencies. See #1018

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