From 2fb3aa8991a4e487962e3268b854cf6ae183027e Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Tue, 25 Nov 2025 11:06:24 -0800 Subject: [PATCH] update `minimumReleaseAge` (#25057) ### What does this PR do? ### How did you verify your code works? --- bunfig.toml | 2 +- src/bunfig.zig | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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");