2

Let's say we have a private registry (sinopia) and we have some private module there call "secret-lib"

What we are doing now is in a .npmrc add the following line:

registry=http://10.16.1.2:3333/

and package json:

dependancies: {
  "secret-lib": "^0.1.1",
}

However this makes that every other modules also being proxied through the private registry.

Is there a way to only go through the private registry when is fetching secrete-lib?

Additional information: The secret-lib also in a private repo managed by Lerna, so I cannot just do something like below because that's not the published module

dependancies: {
      "secret-lib": "git@my-company.io:libs/secret-lib.git^0.1.1",",
    }
E_net4 - Krabbe mit Hüten
  • 24,143
  • 12
  • 85
  • 121
Yichaoz
  • 8,686
  • 9
  • 50
  • 91

0 Answers0