mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Remove diff
This commit is contained in:
@@ -8166,6 +8166,7 @@ pub const PackageManager = struct {
|
||||
var root = Lockfile.Package{};
|
||||
var needs_new_lockfile = load_lockfile_result != .ok or
|
||||
(load_lockfile_result.ok.lockfile.buffers.dependencies.items.len == 0 and manager.package_json_updates.len > 0);
|
||||
|
||||
manager.options.enable.force_save_lockfile = manager.options.enable.force_save_lockfile or (load_lockfile_result == .ok and load_lockfile_result.ok.was_migrated);
|
||||
|
||||
// this defaults to false
|
||||
|
||||
@@ -1006,7 +1006,7 @@ pub fn migrateNPMLockfile(this: *Lockfile, allocator: Allocator, log: *logger.Lo
|
||||
|
||||
this.meta_hash = try this.generateMetaHash(false);
|
||||
|
||||
return LoadFromDiskResult{ .ok = .{ .lockfile = this } };
|
||||
return LoadFromDiskResult{ .ok = .{ .lockfile = this, .was_migrated = true } };
|
||||
}
|
||||
|
||||
fn packageNameFromPath(pkg_path: []const u8) []const u8 {
|
||||
|
||||
Reference in New Issue
Block a user