diff options
Diffstat (limited to 'src/bun_js.zig')
-rw-r--r-- | src/bun_js.zig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bun_js.zig b/src/bun_js.zig index bb59d7e87..b0457febc 100644 --- a/src/bun_js.zig +++ b/src/bun_js.zig @@ -55,7 +55,10 @@ pub const Run = struct { var arena = try Arena.init(); if (!ctx.debug.loaded_bunfig) { - try bun.CLI.Arguments.loadConfigPath(ctx.allocator, true, "bunfig.toml", &ctx, .RunCommand); + // _ = try bun.CLI.Arguments.loadConfigPath(ctx.allocator, true, "bunfig.toml", &ctx, .RunCommand); + _ = bun.CLI.Arguments.loadConfigPath(ctx.allocator, true, "bun.json", &ctx, .RunCommand) catch blk: { + break :blk bun.CLI.Arguments.loadConfigPath(ctx.allocator, true, "bunfig.toml", &ctx, .RunCommand) catch false; + }; } run = .{ @@ -142,7 +145,9 @@ pub const Run = struct { var arena = try Arena.init(); if (!ctx.debug.loaded_bunfig) { - try bun.CLI.Arguments.loadConfigPath(ctx.allocator, true, "bunfig.toml", &ctx, .RunCommand); + _ = bun.CLI.Arguments.loadConfigPath(ctx.allocator, true, "bun.json", &ctx, .RunCommand) catch blk: { + break :blk bun.CLI.Arguments.loadConfigPath(ctx.allocator, true, "bunfig.toml", &ctx, .RunCommand) catch false; + }; } run = .{ |