Skip to content

[feature] hint hoister algorithm #2306

Open
@bestander

Description

@bestander

Do you want to request a feature or report a bug?
feature

What is the current behavior?

Yarn hoists dependencies consistently but sometimes unpredictable.
A very common version of a package (core-js@2) can fail to hoist on top of node_modules tree if a less common package (core-js@1) got hoisted there first.

What is the expected behavior?

  • Yarn can indicate that a dependency is getting hoisted too many times.
  • Yarn can indicate how to fix package.json so that we get optimised hoisting
  • package.json/.yarnrc can have hints for package-hoister to use as priorities

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions