add support for "workspaces.nohoist" and "workspaces.hoistingLimits" (#20124)

This commit is contained in:
Dylan Conway
2025-06-03 23:44:09 -07:00
committed by GitHub
parent adfdaab4fd
commit 11070b8e16
18 changed files with 453 additions and 126 deletions

View File

@@ -194,14 +194,14 @@ pub const OutdatedCommand = struct {
const abs_res_path = path.joinAbsStringBuf(FileSystem.instance.top_level_dir, &path_buf, &[_]string{res_path}, .posix);
if (!glob.walk.matchImpl(allocator, pattern, strings.withoutTrailingSlash(abs_res_path)).matches()) {
if (!glob.match(pattern, strings.withoutTrailingSlash(abs_res_path)).matches()) {
break :matched false;
}
},
.name => |pattern| {
const name = pkg_names[workspace_pkg_id].slice(string_buf);
if (!glob.walk.matchImpl(allocator, pattern, name).matches()) {
if (!glob.match(pattern, name).matches()) {
break :matched false;
}
},
@@ -305,7 +305,7 @@ pub const OutdatedCommand = struct {
.path => unreachable,
.name => |name_pattern| {
if (name_pattern.len == 0) continue;
if (!glob.walk.matchImpl(bun.default_allocator, name_pattern, dep.name.slice(string_buf)).matches()) {
if (!glob.match(name_pattern, dep.name.slice(string_buf)).matches()) {
break :match false;
}
},