Table of contents
  • Step 1
  • Step 2
  • Step 3
  • Step 4
  • Revert

Say we have two repos:

repo-a which depends on npm package-a

Step 1

Run yalc publish in the package-a repo

Step 2

Run yalc add package-a in the repo-a repo

Step 3

Run yarn in repo-a

Step 4

Whenever you update package-a, run yalc push in the package-a, and run yalc add package-a in the repo-a repo

You may need to run yarn build && yalc push if package-a needs building first.


When you're done testing with Yalc, run yalc remove --all to remove all the yalced packages from repo-a

Want to make your own site like this? Try gatsby-theme-code-notes by Zander Martineau.
Notes on code. My second brain, by Zander Martineau.