Remove diff

This commit is contained in:
Ashcon Partovi
2023-12-01 15:39:01 -08:00
parent 2f1733b48f
commit cf9ebff4e3
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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 {