Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -104,11 +104,6 @@ export function isTestStoryFixtureOrMockFile(filePath: string) {
|
||||
);
|
||||
}
|
||||
|
||||
export function isOptionalPluginOutput(relativePath: string) {
|
||||
const normalized = normalizeRelativePath(relativePath);
|
||||
return normalized === "packages/plugins" || normalized.startsWith("packages/plugins/");
|
||||
}
|
||||
|
||||
export function isScannableSourceFile(filePath: string) {
|
||||
return sourceFileExtensions.has(path.extname(filePath)) && !isGeneratedOrIgnoredFile(filePath);
|
||||
}
|
||||
@@ -134,13 +129,13 @@ export async function collectRemovedModuleSourceFiles(root = repoRoot, scanRoots
|
||||
const absolutePath = path.join(directory, entry.name);
|
||||
const relativePath = toRelativePath(root, absolutePath);
|
||||
if (entry.isDirectory()) {
|
||||
if (isIgnoredDirectory(entry.name, relativePath) || isOptionalPluginOutput(relativePath)) continue;
|
||||
if (isIgnoredDirectory(entry.name, relativePath)) continue;
|
||||
await walk(absolutePath);
|
||||
continue;
|
||||
}
|
||||
if (!entry.isFile()) continue;
|
||||
if (!isScannableSourceFile(entry.name)) continue;
|
||||
if (isOptionalPluginOutput(relativePath) || isTestStoryFixtureOrMockFile(relativePath)) continue;
|
||||
if (isTestStoryFixtureOrMockFile(relativePath)) continue;
|
||||
files.push(absolutePath);
|
||||
}
|
||||
}
|
||||
@@ -155,7 +150,7 @@ export async function collectRemovedModuleSourceFiles(root = repoRoot, scanRoots
|
||||
const absoluteRoot = path.join(root, normalizedRoot);
|
||||
const rootStat = await stat(absoluteRoot);
|
||||
if (rootStat.isFile()) {
|
||||
if (isScannableSourceFile(absoluteRoot) && !isTestStoryFixtureOrMockFile(normalizedRoot) && !isOptionalPluginOutput(normalizedRoot)) files.push(absoluteRoot);
|
||||
if (isScannableSourceFile(absoluteRoot) && !isTestStoryFixtureOrMockFile(normalizedRoot)) files.push(absoluteRoot);
|
||||
continue;
|
||||
}
|
||||
await walk(absoluteRoot);
|
||||
|
||||
Reference in new issue
Block a user