How to merge multiple (npm) package.json files into one with Gulp?
<p>Lets assume I have a mainFolder and 3 subfolders (subFolderA, subfolderB, subfolderC). </p>

<p>And these subfolders all contain a package.json with dependencies and devDependencies. (mainFolder/subFolderA/package.json)</p>

<p>I want to combine them into a single package.json in mainFolder (mainFolder/package.json)</p>

<p>Is there an existing gulp package (or any other solution outside Gulp) to combine and merge package.json dependencies and devDependencies?</p>

<p>(Let's assume there will be no version conflict. If there is a solution also covers that case, thats great!)</p>

<p>Can you post an example gulpfile.js or explain other ways/tools.</p>

<p>Thank you</p>