The link step essentially consist in three steps:
- Tree exposition
- Tree serialization
- Package builds
The first step is when Yarn communicates to the various linkers to let them know which packages in the dependency tree belong to them, and what are their dependencies.