Skip to content

EHOIST_ROOT_VERSION warning hoisting question #872

@redonkulus

Description

@redonkulus

A general question about the warning EHOIST_ROOT_VERSION. Given the log information below, does this mean foo would be duplicated in the leaf package or is lerna smart enough to know it satisfies semver and is ok to be hoisted?

04:23:43 lerna WARN EHOIST_ROOT_VERSION The repository root depends on foo@~0.0.10, which differs from the more common foo@0.0.x.

I ask because later on in my logs I see the following message as well:

04:23:43 lerna WARN EHOIST_PKG_VERSION "bar" package depends on foo@0.0.x, which differs from the hoisted foo@~0.0.10.

According to semver both 0.0.x and ~0.0.10 should resolve to the same version and hoisted appropriately. Is my assumption incorrect?

lerna.json

{
  "lerna": "2.0.0-rc.4",
  "version": "independent"
}

Context

Your Environment

Executable Version
lerna --version 2.0.0-rc.5
npm --version 5.0.0
node --version v8.0.0
OS Version
NAME VERSION
macOS Sierra 10.12.5

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