Update package.json files just like npm does