Generate package.json.