mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
18 lines
592 B
Zig
18 lines
592 B
Zig
//! parse dependency of positional arg string (may include name@version for example)
|
|
//! get the precise version from the lockfile (there may be multiple)
|
|
//! copy the contents into a temp folder
|
|
|
|
pub const PatchCommand = struct {
|
|
pub fn exec(ctx: Command.Context) !void {
|
|
try updatePackageJSONAndInstallCatchError(ctx, .patch);
|
|
}
|
|
};
|
|
|
|
const string = []const u8;
|
|
|
|
const bun = @import("bun");
|
|
const Command = bun.cli.Command;
|
|
|
|
const PackageManager = bun.install.PackageManager;
|
|
const updatePackageJSONAndInstallCatchError = PackageManager.updatePackageJSONAndInstallCatchError;
|