Hailwood – 10-06 Apr 11

HHailwood4/11/2023
If I'm creating a package that requires the consumer to have a dependency I'll add it to peerDependencies (e.g. if my package uses tailwindcss for styling components, or react for the components). I'm also setting up storybook for the components, which means for dev I need to have tailwindcss installed.

So I'm wondering if I need to have tailwindcss/react/react-dom listed under peerDependencies and devDependencies or whether just peerDependencies is enough?
It does seem like having them listed under just peerDependencies causes them to be installed, but thought I'd get confirmation.
UUUnknown User4/11/2023
5 Messages Not Public
Sign In & Join Server To View