mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
bun outdated docs (#13497)
Co-authored-by: Zack Radisic <zack@theradisic.com>
This commit is contained in:
@@ -111,6 +111,9 @@ fn Table(
|
||||
|
||||
pub const OutdatedCommand = struct {
|
||||
pub fn exec(ctx: Command.Context) !void {
|
||||
Output.prettyErrorln("<r><b>bun outdated <r><d>v" ++ Global.package_json_version_with_sha ++ "<r>", .{});
|
||||
Output.flush();
|
||||
|
||||
const cli = try PackageManager.CommandLineArguments.parse(ctx.allocator, .outdated);
|
||||
|
||||
const manager = PackageManager.init(ctx, cli, .outdated) catch |err| {
|
||||
@@ -183,9 +186,6 @@ pub const OutdatedCommand = struct {
|
||||
if (root_pkg_id == invalid_package_id) return;
|
||||
const root_pkg_deps = lockfile.packages.items(.dependencies)[root_pkg_id];
|
||||
|
||||
Output.prettyErrorln("<r><b>bun outdated <r><d>v" ++ Global.package_json_version_with_sha ++ "<r>", .{});
|
||||
Output.flush();
|
||||
|
||||
try updateManifestsIfNecessary(manager, log_level, root_pkg_deps);
|
||||
|
||||
try switch (Output.enable_ansi_colors) {
|
||||
|
||||
Reference in New Issue
Block a user