diff --git a/bunfig.toml b/bunfig.toml index f1bba3259c..82329b401e 100644 --- a/bunfig.toml +++ b/bunfig.toml @@ -10,4 +10,4 @@ preload = "./test/preload.ts" [install] linker = "isolated" -minimumReleaseAge = 1 +minimumReleaseAge = 259200 # three days diff --git a/src/bunfig.zig b/src/bunfig.zig index 312debfa12..bcde33ecf3 100644 --- a/src/bunfig.zig +++ b/src/bunfig.zig @@ -741,12 +741,12 @@ pub const Bunfig = struct { if (install_obj.get("minimumReleaseAge")) |min_age| { switch (min_age.data) { - .e_number => |days| { - if (days.value < 0) { + .e_number => |seconds| { + if (seconds.value < 0) { try this.addError(min_age.loc, "Expected positive number of seconds for minimumReleaseAge"); return; } - install.minimum_release_age_ms = days.value * std.time.ms_per_s; + install.minimum_release_age_ms = seconds.value * std.time.ms_per_s; }, else => { try this.addError(min_age.loc, "Expected number of seconds for minimumReleaseAge");