Generate package.json file