Implement bun init subcommand

This commit is contained in:
Jarred Sumner
2022-08-04 21:42:49 -07:00
parent 7ba61bc983
commit d034c004f9
12 changed files with 676 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(bun.span(str), target)) return true;
for (in) |str| if (contains(if (@TypeOf(str) == u8) &[1]u8{str} else bun.span(str), target)) return true;
return false;
}