Skip to content

Commit

Permalink
Update src/cli/pack_command.zig
Browse files Browse the repository at this point in the history
Co-authored-by: Dylan Conway <[email protected]>
  • Loading branch information
RiskyMH and dylan-conway authored Feb 8, 2025
1 parent 5dc56f5 commit d911de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/pack_command.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ pub const PackCommand = struct {
while (files_array.next()) |files_entry| {
if (files_entry.asString(ctx.allocator)) |file_entry_str| {
const normalized = bun.path.normalizeBuf(file_entry_str, &path_buf, .posix);
const parsed = try Pattern.fromUTF8(ctx.allocator, try ctx.allocator.dupe(u8, normalized)) orelse continue;
const parsed = try Pattern.fromUTF8(ctx.allocator, normalized) orelse continue;
try includes.append(ctx.allocator, parsed);
continue;
}
Expand Down

0 comments on commit d911de7

Please sign in to comment.