mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
19 lines
608 B
Zig
19 lines
608 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);
|
|
}
|
|
};
|
|
|
|
// @sortImports
|
|
|
|
const bun = @import("bun");
|
|
const string = bun.string;
|
|
const Command = bun.CLI.Command;
|
|
|
|
const PackageManager = bun.install.PackageManager;
|
|
const updatePackageJSONAndInstallCatchError = PackageManager.updatePackageJSONAndInstallCatchError;
|