BundledDependenciesAuto generate your bundledDependencies
npm install bundled-dependencies
UsageIn a directory with a package.json file just type:
Takes a package.json file, looks at the dependencies object and adds each item it to the bundledDependencies array.
To use it I just create a file containing:
I then call that file from my CI, run my tests, assuming the tests pass then run NPM pack and all the dependencies will be included in the generated package file.