openSUSE / obs-service-node_modules

MIT License
7 stars 11 forks source link

Feature Request: Work with a yarn.lock? #42

Closed johanneskastl closed 2 weeks ago

johanneskastl commented 2 weeks ago

Dear maintainers,

I come across npm proejcts once in a while and noticed that some of them use a yarn.lock instead of a package-lock.json. While I could convert them using something like synp, this breaks the workflow completely.

Would it be possible to have the service work with yarn instead of npm, if the user hands over a yarn.lock instead of a package-lock.json?

Or should this be a different service?

Kind Regards, Johannes

AdamMajer commented 2 weeks ago

For yarn, there is also a feature in yarn that does this via "offline-mirror" -- this is essentially exactly what this service + https://github.com/openSUSE/npm-localhost-proxy do for npm.

https://classic.yarnpkg.com/blog/2016/11/24/offline-mirror/

johanneskastl commented 2 weeks ago

Thanks for the information, Adam. I'll give it a try.

But not having this in the node_modules service means I have to do this manually (aka Makefile), hence my idea to have this as a service.