Dependencies and versioning #4467
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
While dependencies are per-component, Bit sets versions according to what is resolved in your workspace' (ie - what's in This also means that when you modify a component you can see how it effects on the rest of the components. If you modify a component that has dependents, you can run If you want to set one or more of your components to depend on a specific version of another, you can do that. You need to add a |
Beta Was this translation helpful? Give feedback.
While dependencies are per-component, Bit sets versions according to what is resolved in your workspace' (ie - what's in
node_modules
), according to the resolution policy configured. Now, what happens in your workspace is essentially a mono-repo like setup, but with a more granular level of components. All components have generated modules (opennode_modules
, see that you have the components' dists there). So when dependencies resolved, their versions are resolved from what's in the workspace.As a result, all components depending on button will get the same version of button.
This also means th…