Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

install/deps: Stop flattening modules that require peer deps#17678

Merged
zkat merged 1 commit intorelease-nextfrom
iarna/stop-flattening-req-peer-deps
Jul 8, 2017
Merged

install/deps: Stop flattening modules that require peer deps#17678
zkat merged 1 commit intorelease-nextfrom
iarna/stop-flattening-req-peer-deps

Conversation

@iarna
Copy link
Copy Markdown
Contributor

@iarna iarna commented Jul 8, 2017

This is necessary because we don't know where their peer dep is installed.
In fact, it might not be installed and that's still a valid tree. By not
flattening it we can ensure that it's always able to load it regardless of where
it was required.

Fixes: #17639

@iarna iarna requested a review from zkat July 8, 2017 00:13
This is necessary because we don't know where their peer dep is installed.
In fact, it might not _be_ installed and that's still a valid tree.  By not
flattening it we can ensure that it's always able to load it regardless of where
it was required.

Fixes: #17639
@iarna iarna force-pushed the iarna/stop-flattening-req-peer-deps branch from 67254fb to 5d4ae4a Compare July 8, 2017 00:26
Copy link
Copy Markdown
Contributor

@zkat zkat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lolsob

@zkat zkat merged commit e813aa4 into release-next Jul 8, 2017
@zkat zkat deleted the iarna/stop-flattening-req-peer-deps branch July 8, 2017 19:27
iarna added a commit that referenced this pull request Jul 11, 2017
This is necessary because we don't know where their peer dep is installed.
In fact, it might not _be_ installed and that's still a valid tree.  By not
flattening it we can ensure that it's always able to load it regardless of where
it was required.

Fixes: #17639
PR-URL: #17678
Credit: @iarna
Reviewed-By: @zkat
@yvele
Copy link
Copy Markdown

yvele commented Jul 11, 2017

@iarna @zkat This totally breaks my whole organisation 😭

I have some packages that also acts like "dependency presets".. When you get one, you also get his flattened dependencies, and I'm depending on them.

In my use case, the problem is that many packages like eslint-plugin-babel have peer dependencies and are not flattened anymore... I cannot use my "dependency presets" anymore, and instead should explicitly list ALL dependencies

Should I open an issue? Is my use of "dependency presets" not legit?

Edit: Looks like some other peeps have the same issue #17717

@jsg2021
Copy link
Copy Markdown

jsg2021 commented Jul 12, 2017

Yep this totally breaks my team's entire workflow. 😭

@doasync
Copy link
Copy Markdown

doasync commented Jul 13, 2017

"bundleDependencies": false doesn't help (it would be a hotfix for my case)

@zkat
Copy link
Copy Markdown
Contributor

zkat commented Jul 13, 2017

It's already reverted BTW. The patch is going out probably today

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants