bun outdated docs (#13497)

Co-authored-by: Zack Radisic <zack@theradisic.com>
This commit is contained in:
Dylan Conway
2024-08-23 23:11:52 -07:00
committed by GitHub
parent b005ef43d4
commit 1a9307da08
8 changed files with 74 additions and 20 deletions

View File

@@ -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) {