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

Handle peerDependencies a bit better. #1162

Closed
bweston92 opened this issue Sep 20, 2019 · 1 comment
Closed

Handle peerDependencies a bit better. #1162

bweston92 opened this issue Sep 20, 2019 · 1 comment

Comments

@bweston92
Copy link
Contributor

🚀 feature request

Relevant Rules

  • yarn_install
  • npm_install

Description

Currently creating a React without using TypeScript will require adding many peer dependencies that React has for TypeScript even though it is not used at all however Bazel will fail the install.

Describe the solution you'd like

Either have some sort of ignoreDepedencies in package.json which are read and will no longer fail, this will mean you've acknowledged and are ok with these dependencies being ignored.

Or we can just not hard fail at all on peer dependencies assuming the developer knows best.

Describe alternatives you've considered

You have to add peer dependencies of all packages and sub packages that have them as dependencies in your own package.json

@alexeagle
Copy link
Collaborator

Latest release no longer errors when peerDeps are missing

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 a pull request may close this issue.

2 participants