#!/bin/bash
# You must set the port in your npm_lazy config
# See https://github.com/mixu/npm_lazy#installation
PORT=9090
function ctrl_c() {
	npm config delete registry
}
trap ctrl_c INT
npm_lazy --config ~/npm_lazy.config.js &
npm config set registry http://localhost:$PORT
# Wait
sleep infinity
