Disable bun patch in release builds until #11719 is fixed

cc @zackradisic
This commit is contained in:
Jarred Sumner
2024-06-08 23:07:15 -07:00
parent 731a85f80d
commit 25a09d8858
3 changed files with 14 additions and 0 deletions

View File

@@ -1,8 +1,14 @@
const bun = @import("root").bun;
const Command = @import("../cli.zig").Command;
const PackageManager = @import("../install/install.zig").PackageManager;
pub const PatchCommand = struct {
pub fn exec(ctx: Command.Context) !void {
if (!bun.FeatureFlags.is_patch_cmd_enabled) {
bun.Output.prettyErrorln("bun patch is not available in this version of bun. Stay tuned.", .{});
bun.Global.exit(1);
}
try PackageManager.patch(ctx);
}
};