aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cli.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cli.zig b/src/cli.zig
index 5727615f2..9f5e0cac2 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -869,6 +869,12 @@ 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: {