We switched to NPM workspaces to share source code. Works fine.
We want to go further and utilize NPM workspaces to share dependencies. Like every WEB app in monorepo should be built with Next.js v14.0.3 - not any other version.
How could we achieve version sharing?
Seems we are able to define a workspace with empty
index.jssolely for the purpose of defining a dependency list, to consume it transitively:and then include it into other submodules (workspaces):
This way it is possible to share version specification in workspace managed mono-repo.