Starter project - UI deps should be owned by the app or the package #484
-
I love the simplicity and speed of sharing ui components using Third party dependencies, who should specify them? the app? the package? both? 😖 I'm sure this is more a matter of opinion but i'd like to follow convention if there is one. Should I specify the ui package dependencies as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I guess you could do what you're describing with |
Beta Was this translation helpful? Give feedback.
I guess you could do what you're describing with
peerDependencies
. However, I think it will be easier to simply keep them asdependencies
of theui
package as then you can collocate and encapsulate real dependency needs of the package. Also, if you ever do need to publish the package, then it's ready to go. It's also going to be less work as you add more applications to only need to specify deps forui
in one place instead of in each app that consumes it.