[bun upgrade] Implement --canary and BUN_CANARY=1

This commit is contained in:
Jarred Sumner
2022-07-22 12:19:30 -07:00
parent ddfd2fd442
commit c2d6ceb0f3
3 changed files with 113 additions and 20 deletions

View File

@@ -78,7 +78,7 @@ pub inline fn containsComptime(self: string, comptime str: string) bool {
pub const includes = contains;
pub inline fn containsAny(in: anytype, target: string) bool {
for (in) |str| if (contains(str, target)) return true;
for (in) |str| if (contains(bun.span(str), target)) return true;
return false;
}