假设我们有一个私人注册表(sinopia),我们有一些私人模块称为“secret-lib”
我们现在正在做的是.npmrc
添加以下行:
registry=http://10.16.1.2:3333/
并打包json:
dependancies: {
"secret-lib": "^0.1.1",
}
然而,这使得所有其他模块也通过私有注册表进行代理。
有没有办法只在获取secrete-lib
时通过私人注册表?
其他信息:secret-lib
也在由Lerna管理的私人仓库中,所以我不能只做下面的事情,因为那不是已发布的模块
dependancies: {
"secret-lib": "git@my-company.io:libs/secret-lib.git^0.1.1",",
}