primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Why only using devDependencies?

Open ghost opened this issue 8 years ago • 6 comments

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

ghost avatar Dec 15 '17 10:12 ghost

fully agree

RushPVA avatar Dec 16 '17 11:12 RushPVA

Charts are optional dependency, since it is used only for Charts components.

srbala avatar Dec 18 '17 15:12 srbala

Agree on leaving chart as is, but react-addons-css-transition-group should be in dependencies.

joshdanhall avatar Dec 20 '17 09:12 joshdanhall

How about using peerDependencies, classNames and react-transition-group are likely to be in the host project, we rather not bring our own copy.

cagataycivici avatar Dec 22 '17 07:12 cagataycivici

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.

srbala avatar Dec 23 '17 18:12 srbala

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.

cagataycivici avatar Feb 06 '18 11:02 cagataycivici