Generate package.json file for npm modules