Make bun pm ls only show top-level by default

This commit is contained in:
Jarred Sumner
2022-12-22 23:38:56 -08:00
parent 85733abe79
commit 3da9c728d6
2 changed files with 38 additions and 2 deletions

View File

@@ -3983,3 +3983,12 @@ pub fn cloneNormalizingSeparators(
return buf[0 .. @ptrToInt(remain.ptr) - @ptrToInt(buf.ptr)];
}
pub fn leftHasAnyInRight(to_check: []const string, against: []const string) bool {
for (to_check) |check| {
for (against) |item| {
if (eqlLong(check, item, true)) return true;
}
}
return false;
}