-
Notifications
You must be signed in to change notification settings - Fork 2.3k
EHOIST_ROOT_VERSION warning hoisting question #872
Copy link
Copy link
Closed
Labels
Description
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 |
Reactions are currently unavailable