-
Notifications
You must be signed in to change notification settings - Fork 128
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
Remove direct react dependency, cleanup unused dependencies, upgrade webpack-cli + sass #152
base: master
Are you sure you want to change the base?
Conversation
changes also include upgrading the package-lock.json file for the latest version of npm (7.24.0)
there is a direct import from prop-types in ReactCodeInput.js
prevents this error after upgrade to storybook v5: webpack/webpack#8082
Codecov Report
@@ Coverage Diff @@
## master #152 +/- ##
=======================================
Coverage 96.55% 96.55%
=======================================
Files 2 2
Lines 145 145
Branches 41 41
=======================================
Hits 140 140
Misses 5 5
Continue to review full report at Codecov.
|
"react": "^16.3.2", | ||
"react-dom": "^16.3.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should still be put into devDependencies
to show they are directly used by this package, relying on other packages to install your dependencies isn't as good and when using Yarn PnP won't even work as you must declare explicitly all dependencies you import in your package.
Bump! Is there any chance that this will be merged? |
the direct react and react-dom dependencies cause react and react-dom 16 to be installed when adding
react-code-input
to a react v17.x application, so i removed the direct react and react-dom dependencies, keeping them only as peer dependencies (fixes #75). storybook still takes care of installing them so thatnpm start
works, andyarn build
still works. in addition:prop-types
to peer dependencies (there is a direct import fromprop-types
in ReactCodeInput.js)webpack-cli
(prepares for the possibility of upgrading storybook, which otherwise leads to Error when trying to build bundle after upgrading to4.20.0
webpack/webpack#8082)sass