added postinstall hook to ensure the client code gets build on npm install