diff --git a/lib/walker.ts b/lib/walker.ts index 8c88210e..76fb8c13 100644 --- a/lib/walker.ts +++ b/lib/walker.ts @@ -317,16 +317,6 @@ function stepDetect( } } -function findCommonJunctionPoint(file: string, realFile: string) { - // find common denominator => where the link changes - while (toNormalizedRealPath(path.dirname(file)) === path.dirname(realFile)) { - file = path.dirname(file); - realFile = path.dirname(realFile); - } - - return { file, realFile }; -} - export interface WalkerParams { publicToplevel?: boolean; publicPackages?: string[]; @@ -400,10 +390,6 @@ class Walker { } appendSymlink(file: string, realFile: string) { - const a = findCommonJunctionPoint(file, realFile); - file = a.file; - realFile = a.realFile; - if (!this.symLinks[file]) { const dn = path.dirname(file); this.appendFileInFolder({