DEV Community

Discussion on: Are you a YARNer or a NPMer?

Collapse
 
rrsai profile image
Roy Ronalds

One thing to note is yarn 3 has zipped and thus trackable dependency cache, if that were something that would work for you.
No more network connection issues making your app unbuildable, or package maintainers taking their packages away leaving you with a broken app.

Collapse
 
brianburton profile image
Brian Burton

That sounds cool, just not sure how that would work in an automated build environment within a Docker container. Where does the cache get stored?

Thread Thread
 
kzqai profile image
Roy Ronalds

git add .yarn/
git commit

You can just track it in git along with your source files.

Thread Thread
 
brianburton profile image
Brian Burton

Cool! I'll check it out. Thanks!