windows: use directory symlinks for directories

This commit is contained in:
Meghan Denny
2024-03-21 21:26:31 -07:00
parent 935146e9ab
commit 02db0e43df
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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});