From efb2cb587194944c8a7d6eb2a46d66262566ecd2 Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Wed, 13 Dec 2023 03:11:03 -0800 Subject: [PATCH] get `auto` and `prefer` from install expr (#7624) --- src/bunfig.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bunfig.zig b/src/bunfig.zig index ca0dd45d95..a7a3c0fa2b 100644 --- a/src/bunfig.zig +++ b/src/bunfig.zig @@ -302,7 +302,7 @@ pub const Bunfig = struct { break :brk install_; }; - if (json.get("auto")) |auto_install_expr| { + if (_bun.get("auto")) |auto_install_expr| { if (auto_install_expr.data == .e_string) { this.ctx.debug.global_cache = options.GlobalCache.Map.get(auto_install_expr.asString(this.allocator) orelse "") orelse { try this.addError(auto_install_expr.loc, "Invalid auto install setting, must be one of true, false, or \"force\" \"fallback\" \"disable\""); @@ -325,7 +325,7 @@ pub const Bunfig = struct { } } - if (json.get("prefer")) |prefer_expr| { + if (_bun.get("prefer")) |prefer_expr| { try this.expect(prefer_expr, .e_string); if (Prefer.get(prefer_expr.asString(bun.default_allocator) orelse "")) |setting| {