ci: broaden extension boundary guards

This commit is contained in:
Peter Steinberger
2026-04-27 21:02:24 +01:00
parent e9b1fbb8c4
commit 08e7561972
4 changed files with 28 additions and 35 deletions

View File

@@ -242,14 +242,6 @@ function collectCrossOwnerReservedSdkImports(): Array<{
for (const file of collectExtensionFiles(resolve(REPO_ROOT, "extensions"))) {
const repoRelativePath = relative(REPO_ROOT, file).replaceAll("\\", "/");
if (
/(?:^|\/)(?:__tests__|tests|test-support)(?:\/|$)/.test(repoRelativePath) ||
/(?:^|\/)test-support\.[cm]?tsx?$/.test(repoRelativePath) ||
/\.test-support\.[cm]?tsx?$/.test(repoRelativePath) ||
/\.test\.[cm]?tsx?$/.test(repoRelativePath)
) {
continue;
}
const pluginId = repoRelativePath.split("/")[1];
const source = readFileSync(file, "utf8");
for (const match of source.matchAll(importPattern)) {