Commit d231db10a87ac1fe382c29c1cc72a3ac254a3af5
Allow overriding registry argument
cel committed on 9/28/2017, 1:39:09 AMParent: 2b44276bef31490ce989ab1cc7a1943c8bac0d4e
Files changed
bootstrap.js | changed |
bootstrap.js | ||
---|---|---|
@@ -217,10 +217,10 @@ | ||
217 | 217 | if (cmd) { |
218 | 218 | var regHost = opts.registryHost || 'localhost' |
219 | 219 | var regHostname = regHost + ':' + opts.registryPort |
220 | 220 | 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') | |
223 | 223 | } |
224 | 224 | var child = proc.spawn(cmd, args, { |
225 | 225 | stdio: 'inherit' |
226 | 226 | }) |
Built with git-ssb-web