Merges dependencies from multiple package.json files in subdirectories.