Hailwood16mo ago

Hailwood – 10-06 Apr 11

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.
2 Replies
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
reactibot16mo ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1095288805424115732