git ssb

3+

cel / ssb-npm-registry



Commit d231db10a87ac1fe382c29c1cc72a3ac254a3af5

Allow overriding registry argument

cel committed on 9/28/2017, 1:39:09 AM
Parent: 2b44276bef31490ce989ab1cc7a1943c8bac0d4e

Files changed

bootstrap.jschanged
bootstrap.jsView
@@ -217,10 +217,10 @@
217217 if (cmd) {
218218 var regHost = opts.registryHost || 'localhost'
219219 var regHostname = regHost + ':' + opts.registryPort
220220 if (cmd === 'npm' || cmd === 'npx') {
221- args.push('--registry=http://' + regHostname + '/')
222- args.push('--//' + regHostname + '/:_authToken=1')
221+ args.unshift('--registry=http://' + regHostname + '/')
222+ args.unshit('--//' + regHostname + '/:_authToken=1')
223223 }
224224 var child = proc.spawn(cmd, args, {
225225 stdio: 'inherit'
226226 })

Built with git-ssb-web