diff --git a/lib/filesystem.js b/lib/filesystem.js index 8ef421d..106035a 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -105,7 +105,7 @@ class Filesystem { if (relativePath.startsWith('..')) { throw new Error(`${p}: file "${relativePath}" links out of the package`) } - const link = path.relative(realSrcPath, target) + const link = path.relative(this.src, target) const node = this.searchNodeFromPath(p) node.link = link return link