mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
Split install.zig into multiple files (#20626)
Co-authored-by: pfgithub <6010774+pfgithub@users.noreply.github.com>
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
const Command = @import("../cli.zig").Command;
|
||||
const PackageManager = @import("../install/install.zig").PackageManager;
|
||||
|
||||
pub const PatchCommitCommand = struct {
|
||||
pub fn exec(ctx: Command.Context) !void {
|
||||
try PackageManager.patchCommit(ctx);
|
||||
try updatePackageJSONAndInstallCatchError(ctx, .@"patch-commit");
|
||||
}
|
||||
};
|
||||
|
||||
// @sortImports
|
||||
|
||||
const bun = @import("bun");
|
||||
const Command = bun.CLI.Command;
|
||||
|
||||
const PackageManager = bun.install.PackageManager;
|
||||
const updatePackageJSONAndInstallCatchError = PackageManager.updatePackageJSONAndInstallCatchError;
|
||||
|
||||
Reference in New Issue
Block a user