Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add undeclared optional peer dependencies #339

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

merceyz
Copy link
Contributor

@merceyz merceyz commented Jul 16, 2021

What's the problem this PR addresses?

consolidate has some undeclared optional peer dependencies causing it to rely on hoisting to be in its favour which is not guaranteed.
https://yarnpkg.com/advanced/rulebook#packages-should-only-ever-require-what-they-formally-list-in-their-dependencies

How did you fix it?

Add all undeclared dependencies as optional peer dependencies, using the ranges from devDependencies

@niftylettuce niftylettuce merged commit 008a8ff into tj:master Mar 14, 2022
@merceyz merceyz deleted the merceyz/fix/peer-deps branch March 15, 2022 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants