package-merge
Intelligently merge package.json
files.
This is pretty much built for yeoman. It attempts to combine two separate package.json
files into one, respecting as much existing content as possible including already existing dependencies and package.json
formatting.
var merge = ;var dst = fs;var src = fs; // Create a new `package.json`console;
It allows you to do things like define scripts or dependencies that you would like to include as part of a larger project.
Merging:
results in: