Skip to content

Commit

Permalink
[bun install] Deterministic lockfile and simple installs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Dec 17, 2021
1 parent d83c610 commit 538243d
Show file tree
Hide file tree
Showing 3 changed files with 1,182 additions and 465 deletions.
8 changes: 8 additions & 0 deletions src/global.zig
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,14 @@ pub const Output = struct {
}
}

pub fn prettyWithPrinterFn(comptime fmt: string, args: anytype, comptime printFn: anytype, ctx: anytype) void {
if (enable_ansi_colors) {
printFn(ctx, comptime prettyFmt(fmt, true), args);
} else {
printFn(ctx, comptime prettyFmt(fmt, false), args);
}
}

pub fn pretty(comptime fmt: string, args: anytype) void {
prettyWithPrinter(fmt, args, print, .Error);
}
Expand Down
Loading

0 comments on commit 538243d

Please sign in to comment.