We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d73cc commit ced95adCopy full SHA for ced95ad
src/util/fs.js
@@ -153,7 +153,12 @@ export async function symlink(src: string, dest: string): Promise<void> {
153
await fsSymlink(src, dest, "junction");
154
} else {
155
// use relative paths otherwise which will be retained if the directory is moved
156
- await fsSymlink(path.relative(path.dirname(dest), src), dest);
+ let relative = src;
157
+ if (path.isAbsolute(relative)) {
158
+ relative = path.relative(path.dirname(dest), src);
159
+ }
160
+
161
+ await fsSymlink(relative, dest);
162
}
163
} catch (err) {
164
if (err.code === "EEXIST") {
0 commit comments