diff options
author | kumavis <aaron@kumavis.me> | 2021-02-22 09:16:02 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-02-25 21:23:33 +0300 |
commit | 881a8558de5cb808c9efdcf3fb5d0a86a95e8eb0 (patch) | |
tree | 8ebce5fe9fb4528a35ad1d19d30867663abfe051 /test/lib/utils | |
parent | 28d036ae9179f742bd0518e558a54f014a7a895e (diff) |
feat(explain): mark when dependency is bundled
When using `npm explain <package>` it's useful to see if the package has
been bundled. This is especially useful when trying to understand the
provenance of a package's content
PR-URL: https://github.com/npm/cli/pull/2750
Credit: @kumavis
Close: #2750
Reviewed-by: @nlf
Diffstat (limited to 'test/lib/utils')
-rw-r--r-- | test/lib/utils/explain-dep.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lib/utils/explain-dep.js b/test/lib/utils/explain-dep.js index 28f14477a..1b8c4ae38 100644 --- a/test/lib/utils/explain-dep.js +++ b/test/lib/utils/explain-dep.js @@ -97,6 +97,23 @@ const cases = { ], }, + bundled: { + name: 'bundle-of-joy', + version: '1.0.0', + location: 'node_modules/bundle-of-joy', + bundled: true, + dependents: [ + { + type: 'prod', + name: 'prod-dep', + spec: '1.x', + from: { + location: '/path/to/project', + }, + }, + ], + }, + extraneous: { name: 'extra-neos', version: '1337.420.69-lol', |