![](https://seccdn.libravatar.org/avatar/82e205074998b62b41625d6de2784e5d.jpg?s=120&d=mm&r=g)
Hi Axel, On 05.11.24 02:53 Axel Braun wrote:
Am Sonntag, 3. November 2024, 10:57:06 Mitteleuropäische Normalzeit schrieb Johannes Kastl:
is there a good example on how to package a nodejs / npm CLI application?
There is unfortunately not much hope - this hipster stuff is absolutely not meant to go into a rpm package.
I had some trials years ago together with Marguerite Su, getting a kind of container with all the nodejs stuff in it. The soluton was quite fragile
Hmmm.
Last attempt was in 2021 by Adam Majer, to create a OBS service to package nodejs. I did not hear from this anymore. https://github.com/openSUSE/obs-service-node_modules
That is the service I was writing about, that allows vendoring the depedencies. It works similar to the go_modules vendoring service. But what happens after that? It might be that the two examples I am trying with are not working as I am using a converted yarn.lock. I'll investigate further then...
If you find a goof solution let me know
Sure, will do so. Kind Regards, Johannes