mustflow 2.116.0 → 2.116.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,6 +116,14 @@ function sourceAnchorPathPartIsIgnored(part, ignoredDirectoryNames) {
|
|
|
116
116
|
return (ignoredDirectoryNames.has(part) ||
|
|
117
117
|
SOURCE_ANCHOR_DEFAULT_EXCLUDED_PATH_PREFIXES.some((prefix) => part.startsWith(prefix)));
|
|
118
118
|
}
|
|
119
|
+
function directoryIsLinkedGitCheckout(directoryPath) {
|
|
120
|
+
try {
|
|
121
|
+
return statSync(path.join(directoryPath, '.git')).isFile();
|
|
122
|
+
}
|
|
123
|
+
catch {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
119
127
|
function listFilesRecursive(root, options, current = root, depth = 0) {
|
|
120
128
|
if (!existsSync(current)) {
|
|
121
129
|
return [];
|
|
@@ -123,6 +131,9 @@ function listFilesRecursive(root, options, current = root, depth = 0) {
|
|
|
123
131
|
if (depth > MAX_SOURCE_ANCHOR_DIRECTORY_DEPTH) {
|
|
124
132
|
return [];
|
|
125
133
|
}
|
|
134
|
+
if (depth > 0 && directoryIsLinkedGitCheckout(current)) {
|
|
135
|
+
return [];
|
|
136
|
+
}
|
|
126
137
|
let currentRealPath;
|
|
127
138
|
try {
|
|
128
139
|
currentRealPath = realpathSync(current);
|
package/package.json
CHANGED