yalc
yalc copied to clipboard
Incremental publish/push
First of all thanks for creating Yalc - it helped us tremendously!
We created a very efficient environment with Vite + Yalc that makes HMR work and now we want to make it faster as our packages can sometimes weigh tens of MB's and while the build time is quick thanks to EsBuild the main bottle neck is the yalc push step which can sometimes take up to 20 seconds (not ideal for DX).
I've been thinking about adding incremental publish/push support to Yalc - have you ever considered implementing this/would be open for a PR?
As I think adding a watch server to yalc is not the best way to tackle this it could be something like passing a changed-files option yalc publish --changed-files ./lib/example.mjs ./lib/example.d.ts
What do you mean by incremental? IIRR yalc copies only changed files each time, it checks for content changes by calculating hashes, maybe this step takes a lot of time? I never dealt with huge packages though.
can you explain how you made HMR work?