This commit is contained in:
Salman Muin Kayser Chishti
2025-10-16 14:34:09 +01:00
parent 700a55077d
commit 45467b9199
+2 -2
View File
@@ -21,11 +21,11 @@ export const IS_WINDOWS = process.platform === 'win32'
/**
* Custom implementation of readlink to ensure Windows junctions
* maintain trailing backslash for backward compatibility with Node.js < 24
*
*
* In Node.js 20, Windows junctions (directory symlinks) always returned paths
* with trailing backslashes. Node.js 24 removed this behavior, which breaks
* code that relied on this format for path operations.
*
*
* This implementation restores the Node 20 behavior by adding a trailing
* backslash to all junction results on Windows.
*/