Add me to the fail list, I made a package years ago to automate RPM packaging of nodejs modules: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs2rpm It works for most cases, but the dependency hell of Nodejs is way too deep, plus most people will install stuff directly anyway. Em seg., 4 de nov. de 2024, 23:32, Axel Braun <docb@opensuse.org> escreveu:
Hello Johannes
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
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
If you find a goof solution let me know
Cheers Axel