Closed mhdawson closed 4 years ago
@mhdawson I'm wondering what test we should have here to check specified "flat" structure. Could you please look at this test folder is it correct? Test is failing with this node_modules structure - https://github.com/rodion-arr/support/tree/flat_node_modules/test/cli/show-local-tree-flat/node_modules
I see what you mean in that dep3 shows at the top level.
I think it might have to do with having hand created the node_modules versus what npm created, possibly because there is no package-lock.json file. On the other hand npm list shows the expected structure so maybe its a bug in arborist?
In debugger I see that dep3
receives depth = 1 from arborist, so it is printing result on the same level as dep1
and dep2
@rodion-arr that might be a bug in arborist, I'd suggest we land this PR as it improves the current situation and then see if we can understand if its a problem on our end or in arborist.
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 michael_dawson@ca.ibm.com