move building out of npm install