yalc
yalc copied to clipboard
Update copyDirSafe to accept a cache object rather than storing itself
This fixes #103 where a package cannot be added or pushed multiple times in a long running node process since the initial package store cache is always used.
The intention of the cache is to cache the store across the two calls in add.ts, which this modification achieves.