mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Disable bun patch in release builds until #11719 is fixed
cc @zackradisic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user