Skip to content

Commit 4a64b0e

Browse files
committed
fix so that show works for non-nested cases
- found writing starting on doc that the show command did not work as expected for cases where the node_modules directories were not nested based on dependencies. - building the ideal tree with the legacy option fixes this Signed-off-by: Michael Dawson <[email protected]>
1 parent fd75907 commit 4a64b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/commands/show.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = function (opts) {
4040
},
4141
handler: function (argv) {
4242
const arb = new Arborist()
43-
arb.loadActual().then(root => {
43+
arb.buildIdealTree({ legacyBundling: true }).then(root => {
4444
printModule(root, 0, argv).then(() => {}, (e) => {
4545
argv.log.error('show failed: ', e)
4646
})

0 commit comments

Comments
 (0)