Split in multiple npm packages (was "Change peerDependencies to optionalDependencies")
Created by: tkrotoff
Edit: see comments below
So, 3 packages, and make
bootstrap
depend on the other 2,bootstrap-css
andbootstrap-js
jQuery and Popper.js are defined as peerDependencies
: https://github.com/twbs/bootstrap/blob/v4.0.0-beta/package.json#L69
Bootstrap can be used without the JS part (think of reactstrap, React-Bootstrap, Angular UI Bootstrap, NG Bootstrap, BootstrapVue...)
Suggestion: switch to optionalDependencies
so there is no warning when not installing jQuery and Popper.js.
$ yarn
...
warning "bootstrap@4.0.0-beta" has unmet peer dependency "jquery@>=3.0.0".
warning "bootstrap@4.0.0-beta" has unmet peer dependency "popper.js@^1.11.0".