Describe your question in as much detail as possible:
I’d like to create 2 npm packages to use them in other private projects. I’d like to have those 2 packages in the same sub group such as:
mainGroup
|- subGroup
|- project1
|- project2
Plus, I’d like to name them @mainGroup/project1 and @mainGroup/project2
I manage to create the package registry by building the projects and adding the following config to the .npmrc file:
Then I added the first package with yarn add @mainGroup/project1 : it worked fine
But I can’t add the @mainGroup/project2 package because of the conflict in the .npmrc file
I believe using the instance-level endpoint instead of the project one could be an option, but I’m really having trouble using it… Could someone please help me?
If your projects are public, you can use public gitlab instance-level registry.
So, you need your {project_id} (you can find it on project home page) and {your_org_name} (from URL: https://gitlab.com/{your_org_name}/{your_project_name}/)
The steps for the nodejs project:
How to create new instance-level package
package.json file: make sure your package name looks like