Version Groups
This is an addendum to the Getting Started guide.
Version groups are an array of objects which partition your monorepo into isolated sections which each have their own rules/policy/strategy for how versions should be managed.
Examples
- Let’s say your monorepo directly depends on
react
, 3 of your packages have it underdependencies
and another 2 have it underpeerDependencies
. Each of those 5 specific places wherereact
is depended on we refer to as an “instance”. - Every instance of every dependency in your repo is assigned to the first version group it matches.
- Each instance can only belong to one version group.
- If you do not define any version groups, or a given instance of a dependency does not match any of them, it is assigned to an internal catch-all version group.
Here is an example which uses every kind of version group: