Why only using devDependencies?
Hi,
why are some dependencies, which are necessary, only dev dependencies?
Eg. chart.js or react-addons-css-transition-group, which is btw. outdated react-addons-css-transition-group.
Only having devDependencies means, that each project, that uses your lib, must add your dependencies in it own package.json.
Thx
fully agree
Charts are optional dependency, since it is used only for Charts components.
Agree on leaving chart as is, but react-addons-css-transition-group should be in dependencies.
How about using peerDependencies, classNames and react-transition-group are likely to be in the host project, we rather not bring our own copy.
Isn't that adding peerDependencies will bring it's own copy of version specified? unless primereact expect specific version of classNames and react-transition-group.
I think dependencies install packages as the own version. I'm not sure about this so closing at the moment, until we have more feedback. Currently, installation page documents what is required.