diff options
Diffstat (limited to 'src/cli/run_command.zig')
-rw-r--r-- | src/cli/run_command.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig index ba05e1ddf..2fab80fc9 100644 --- a/src/cli/run_command.zig +++ b/src/cli/run_command.zig @@ -933,7 +933,9 @@ pub const RunCommand = struct { // once we know it's a file, check if they have any preloads if (ext.len > 0 and !has_loader) { 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 brk: { + break :brk bun.CLI.Arguments.loadConfigPath(ctx.allocator, true, "bunfig.toml", &ctx, .RunCommand) catch false; + }; } if (ctx.preloads.len == 0) |