CI: allow private bundled runtime barrels

This commit is contained in:
Alexander Davydov 2026-03-20 19:30:32 +03:00
parent c32ff67919
commit c8e449f5c8

View File

@ -110,6 +110,10 @@ function resolveExtensionRoot(filePath) {
return `${segments[0]}/${segments[1]}`;
}
function isRuntimeApiFile(filePath) {
return normalizePath(filePath).endsWith("/runtime-api.ts");
}
function classifyReason(mode, kind, resolvedPath, specifier) {
const verb =
kind === "export"
@ -172,6 +176,11 @@ function collectFromSourceFile(mode, sourceFile, filePath) {
if (!specifier.startsWith(".") || !resolvedPath || !extensionRoot) {
return;
}
if (isRuntimeApiFile(filePath) && resolvedPath.startsWith("src/plugin-sdk/")) {
// Bundled extensions use private runtime barrels to bridge into focused plugin-sdk
// facades without widening the public npm export surface for those channels.
return;
}
if (resolvedPath === extensionRoot || resolvedPath.startsWith(`${extensionRoot}/`)) {
return;
}