mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
windows: use directory symlinks for directories
This commit is contained in:
@@ -388,7 +388,7 @@ fn extract(this: *const ExtractTarball, tgz_bytes: []const u8) !Install.ExtractD
|
||||
.npm => folder_name[name.len + 1 ..],
|
||||
else => folder_name,
|
||||
},
|
||||
.{},
|
||||
.{ .is_directory = true },
|
||||
) catch break :create_index;
|
||||
}
|
||||
|
||||
|
||||
@@ -7025,7 +7025,7 @@ pub const PackageManager = struct {
|
||||
switch (bun.sys.sys_uv.symlinkUV(
|
||||
link_path,
|
||||
dest_path,
|
||||
bun.windows.libuv.UV_FS_SYMLINK_JUNCTION,
|
||||
bun.windows.libuv.UV_FS_SYMLINK_DIR,
|
||||
)) {
|
||||
.err => |err| {
|
||||
Output.prettyErrorln("<r><red>error:<r> failed to create junction to node_modules in global dir due to error {}", .{err});
|
||||
|
||||
Reference in New Issue
Block a user