Skip to content

fix(symlink): use junction type for Windows compatibility with pnpm#5

Open
Gaubee wants to merge 1 commit into11ty:masterfrom
Gaubee:patch-1
Open

fix(symlink): use junction type for Windows compatibility with pnpm#5
Gaubee wants to merge 1 commit into11ty:masterfrom
Gaubee:patch-1

Conversation

@Gaubee
Copy link

@Gaubee Gaubee commented Mar 22, 2025

When creating symlinks on Windows without explicit junction type, the default behavior may trigger EPERM errors under pnpm environments. This fix ensures cross-platform compatibility by enforcing junction type as default on Windows.

When creating symlinks on Windows without explicit `junction` type, the default behavior may trigger EPERM errors under pnpm environments. This fix ensures cross-platform compatibility by enforcing junction type as default on Windows.
@zachleat
Copy link
Member

https://nodejs.org/api/fs.html#fspromisessymlinktarget-path-type

This changes the default for symlink to junction on non-Windows operating systems too, which doesn’t seem like what we want — no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants