openSUSE / obs-service-node_modules

MIT License
7 stars 11 forks source link

Downloading modules in a subdirectory #38

Closed weberhofer closed 9 months ago

weberhofer commented 9 months ago

This package looks very good. I a current use-case I'd required all the processing to happen in a sub-directory of the package. In my case, in the source's root folder a go program is to be compiled that comes along with a "webui/" directory containing a frontend to be built using yarn.

Is there a way to tell the service to process the sub-folder instead of the root folder?

AdamMajer commented 9 months ago

I'm assuming you are referring to the https://github.com/openSUSE/npm-localhost-proxy ?

cd webui; local-npm-registry %{_sourcedir} install ...

weberhofer commented 9 months ago

Thanks for this hint. Now I understand how to use it. Works nicely. I'll post a reference to a project as when finished for documentation.