Link/unlink repositories using Yarn

May 30 2021

yarn
  • Run command yarn link in the repositories which we want to link, let say repo1.
  • Run command yarn link repo1 in the repository where we want to link repo1.
  • Run command yarn unlink repo1 if we want to unlink the repository.

Also, we need to run yarn install after unlinking any repository so that it can fetch it from the packages now.