From cc369ad9d0724e46d5a62f9542f13b966382fde7 Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Fri, 23 Dec 2022 15:13:09 -0800 Subject: fix bun pm ls connectors when node_modules is last --- src/cli/package_manager_command.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cli/package_manager_command.zig') diff --git a/src/cli/package_manager_command.zig b/src/cli/package_manager_command.zig index bab8c272c..0c57df8d8 100644 --- a/src/cli/package_manager_command.zig +++ b/src/cli/package_manager_command.zig @@ -347,7 +347,7 @@ fn printNodeModulesFolderStructure( temp_path = temp_path[j + "node_modules".len ..]; } - if (package_index + 1 < directory.packages.len) more_packages[new_depth] = true; + if (package_index < directory.packages.len) more_packages[new_depth] = true; printNodeModulesFolderStructure(&next, package_id, new_depth, directories, lockfile, more_packages); } } -- cgit v1.2.3