[bun build] Automatically set target to bun when a hashbang is provided

This commit is contained in:
Jarred Sumner
2023-05-15 06:30:55 -07:00
parent 0a879be328
commit 8eaf30c022
2 changed files with 15 additions and 1 deletions

View File

@@ -400,6 +400,7 @@ pub const BuildCommand = struct {
},
},
.encoding = .buffer,
.mode = if (f.is_executable) 0o755 else 0o644,
.dirfd = @intCast(bun.FileDescriptor, root_dir.dir.fd),
.file = .{
.path = JSC.Node.PathLike{