A disclaimer -
Please be advised that the solution presented in this article addresses a very specific problem/situation, and it is not the recommended way to support component versions within a project.
Situation? What situation?
Say that you have a monorepo and in this monorepo you have a package which contains the common components the different repos use. All consumers are using “workspace:^” for this package and since the component package is not published to a registry the publish-time resolution is irrelevant, and workspace:^ simply means every package in the monorepo that depends on it always gets the current local implementation — live, not pinned to a registry snapshot.
But what happens when you would like to introduce a breaking change to a component, say change the Card component’s border radius, title bg color and shadow? This means that all consumers can potentially break, right?






