Reinstall everything from a clean node_modules and package-lock.json
state.
Re-generate list of bundleDependencies and node_modules/.gitignore with
a script that does the right thing based on actual dependency state.
- npm fund cmd:
- no longer depends on `lib/install` modules
- now it uses arborist tree and inventory to retrieve funding data
- refactor to use same exports patterns to new commands
- changed human output to reinstate representation of nested deps
- install:
- no longer breaks on missing audit report
- refactored `reify-output` to use `libnpmfund` module
- added tests for utils.reify-output fund summary
- moved logic from `lib/utils/funding.js` into a new `libnpmfund` pkg
PR-URL: https://github.com/npm/cli/pull/1311
Credit: @ruyadorno
Close: #1311
Reviewed-by: @darcyclarke