🔧
This commit is contained in:
4
node_modules/tinyglobby/dist/index.js
generated
vendored
4
node_modules/tinyglobby/dist/index.js
generated
vendored
@@ -164,7 +164,7 @@ function normalizePattern(pattern, expandDirectories, cwd, props, isIgnore) {
|
||||
}
|
||||
props.depthOffset = newCommonPath.length;
|
||||
props.commonPath = newCommonPath;
|
||||
props.root = newCommonPath.length > 0 ? `${cwd}/${newCommonPath.join("/")}` : cwd;
|
||||
props.root = newCommonPath.length > 0 ? import_node_path.default.posix.join(cwd, ...newCommonPath) : cwd;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -203,7 +203,7 @@ function getRelativePath(path2, cwd, root) {
|
||||
return import_node_path.posix.relative(cwd, `${root}/${path2}`) || ".";
|
||||
}
|
||||
function processPath(path2, cwd, root, isDirectory, absolute) {
|
||||
const relativePath = absolute ? path2.slice(root.length + 1) || "." : path2;
|
||||
const relativePath = absolute ? path2.slice(root === "/" ? 1 : root.length + 1) || "." : path2;
|
||||
if (root === cwd) {
|
||||
return isDirectory && relativePath !== "." ? relativePath.slice(0, -1) : relativePath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user