Yalc

👋 FYI, this note is over 6 months old. Some of the content may be out of date.
On this page

Installation Jump to heading

yarn global add yalc

Usage Jump to heading

Say we have two projects. e.g. one website & one npm package that the website depends on:

website-a which depends on npm package-a

Step 1 Jump to heading

Run yalc publish in the package-a repo

Step 2 Jump to heading

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

Step 3 Jump to heading

Run yarn in website-a

Step 4 Jump to heading

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

You may need to run yarn build && yalc push if package-a needs building first. And You may need to run run yalc add package-a in the website-a repo.

If you have a dev server running in website-a, it might pick up the changes after yalc push automatically so you may not need to do anything else.

Revert Jump to heading

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


← Back home