Open SuperchupuDev opened 3 weeks ago
okay, thinking about it it makes sense that withSymlinks
doesn't work with relative paths as symlinks can point to anywhere outside the root, as long as useRealPaths
is true
. if it's false it shouldn't be any hard to process as a relative path
the following code behaves differently when you add
.withRelativePaths()
and a symlink is at the top level. it looks like it just ignores symlinks completelyhowever it works if you crawl
path.join(process.cwd(), '..')
. usingresolvePaths: false
as an argument forwithSymlinks
doesn't solve the issue eitherit works perfectly without
.withRelativePaths()