add prepublish and build scripts to package.json

prepublish is runs after npm install