mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 04:18:58 +00:00
add support for "workspaces.nohoist" and "workspaces.hoistingLimits" (#20124)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user