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(deps): clean up @types deps list #6303

Merged
merged 1 commit into from Apr 19, 2022
Merged

fix(deps): clean up @types deps list #6303

merged 1 commit into from Apr 19, 2022

Conversation

kyletsang
Copy link
Member

Moves @types/react into peer deps. This should be safe for npm 7 users when resolving peer dependencies because of the optional field in peerDependenciesMeta. All users using TS would've installed a version of @types/react anyway, so we shouldn't have problems here.

For invariant, prop-types, and warning, those can be safely moved into devDeps because their types aren't exposed on the public d.ts files. They are just used internally within the implementation.

Copy link
Collaborator

@golota60 golota60 left a comment

Choose a reason for hiding this comment

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

lgtm! yeah, I think it shouldn't break anything for anyone

@gmukul01
Copy link

When are we planning to merge this ?

@devTanay
Copy link

Can we please merge this soon? I am waiting on this for long

@kyletsang kyletsang merged commit 609c678 into master Apr 19, 2022
@kyletsang kyletsang deleted the update-peer-deps branch April 19, 2022 16:11
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.

None yet

4 participants