Skip to content

fix: move @types/react to dev deps#58

Open
kyletsang wants to merge 3 commits intojquense:masterfrom
kyletsang:react-types-dev
Open

fix: move @types/react to dev deps#58
kyletsang wants to merge 3 commits intojquense:masterfrom
kyletsang:react-types-dev

Conversation

@kyletsang
Copy link
Copy Markdown
Contributor

Fixes #53
Closes #54

@jquense
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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

@kyletsang
Copy link
Copy Markdown
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