aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cli.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cli.zig b/src/cli.zig
index 9f5e0cac2..7f2bd16a2 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -869,12 +869,6 @@ pub const Command = struct {
}
}
- if (ctx.positionals.len > 0 and extension.len == 0) {
- if (try RunCommand.exec(ctx, true, false)) {
- return;
- }
- }
-
if (options.defaultLoaders.get(extension)) |loader| {
if (loader.isJavaScriptLike()) {
possibly_open_with_bun_js: {
@@ -924,6 +918,12 @@ pub const Command = struct {
}
}
+ if (ctx.positionals.len > 0 and extension.len == 0) {
+ if (try RunCommand.exec(ctx, true, false)) {
+ return;
+ }
+ }
+
if (FeatureFlags.dev_only) {
try DevCommand.exec(ctx);
} else {