diff options
Diffstat (limited to '')
-rw-r--r-- | src/bunfig.zig | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/bunfig.zig b/src/bunfig.zig index f11e0377f..2088525b5 100644 --- a/src/bunfig.zig +++ b/src/bunfig.zig @@ -403,12 +403,24 @@ pub const Bunfig = struct { .AutoCommand, .DevCommand, .BuildCommand, .BunCommand => { if (json.get("publicDir")) |public_dir| { try this.expect(public_dir, .e_string); - this.bunfig.router = Api.RouteConfig{ .extensions = &.{}, .dir = &.{}, .static_dir = try public_dir.data.e_string.string(allocator) }; + this.bunfig.router = Api.RouteConfig{ + .extensions = &.{}, + .dir = &.{}, + .static_dir = try public_dir.data.e_string.string(allocator), + }; } }, else => {}, } + if (json.get("debug")) |expr| { + if (expr.get("editor")) |editor| { + if (editor.asString(allocator)) |value| { + this.ctx.debug.editor = value; + } + } + } + if (json.get("macros")) |expr| { // technical debt this.ctx.debug.macros = PackageJSON.parseMacrosJSON(allocator, expr, this.log, this.source); |