update package.json to include preinstall scripts