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: move @types/react to dev deps #58

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kyletsang
Copy link
Contributor

Fixes #53
Closes #54

@jquense
Copy link
Owner

jquense commented Apr 22, 2023

These are suppose to be in deps not dev deps...if anything they are peer deps. But if they aren't installed with the package the types don't work.

This isn't usually a problem since consumers install them also but then you are yoloing valid ranges

@kyletsang
Copy link
Contributor Author

Hmm I figured consumers always have them downloaded themselves anyways. In that case, let's set it up as a peer dep with the optional flag for non-TS consumers?

@HighLiuk
Copy link

@kyletsang do you have any workaround for this? Cannot build Preact with React Bootstrap unless this gets merged

@kyletsang
Copy link
Contributor Author

@kyletsang do you have any workaround for this? Cannot build Preact with React Bootstrap unless this gets merged

Sorry I don't have a workaround for this. @jquense would need to review again.

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.

@types/react should be a devDependency
3 participants