add package.json generate snippet (accidentally removed earlier)