diff options
author | 2021-08-23 02:30:30 -0700 | |
---|---|---|
committer | 2021-08-23 02:30:30 -0700 | |
commit | afb6684782ffb35f6c750a57426c79ac762acc7b (patch) | |
tree | 0789404c9356eba255600797e7cbd5f906521a48 /src/cli/bun_command.zig | |
parent | 8c6700792666b1d7a128095cd5cff392df68375c (diff) | |
download | bun-afb6684782ffb35f6c750a57426c79ac762acc7b.tar.gz bun-afb6684782ffb35f6c750a57426c79ac762acc7b.tar.zst bun-afb6684782ffb35f6c750a57426c79ac762acc7b.zip |
Fix resolve bug with mixed-case node_modules
Former-commit-id: 5bdae0ee491e28b49ceed6136f04e0c1feddc808
Diffstat (limited to 'src/cli/bun_command.zig')
-rw-r--r-- | src/cli/bun_command.zig | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cli/bun_command.zig b/src/cli/bun_command.zig index 169d0ab44..1a63a140d 100644 --- a/src/cli/bun_command.zig +++ b/src/cli/bun_command.zig @@ -172,8 +172,11 @@ pub const BunCommand = struct { try log.print(Output.errorWriter()); } else { var elapsed = @divTrunc(std.time.nanoTimestamp() - ctx.start_time, @as(i128, std.time.ns_per_ms)); - var bundle = NodeModuleBundle.init(node_modules, allocator); - bundle.printSummary(); + const print_summary = !(ctx.args.no_summary orelse false); + if (print_summary) { + var bundle = NodeModuleBundle.init(node_modules, allocator); + bundle.printSummary(); + } const indent = comptime " "; Output.prettyln(indent ++ "<d>{d:6}ms elapsed", .{@intCast(u32, elapsed)}); |