Skip to content

Dependencies and versioning #4467

Answered by itaymendel
soundstep asked this question in Help
Jun 24, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

For any reader looking to understand the reasoning behind per-component versioning, see here

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 (open node_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…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@soundstep
Comment options

@itaymendel
Comment options

@soundstep
Comment options

Answer selected by debs-obrien
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants