add preinstall script to package.json