fix(release): stage runtime deps from plugin package root

This commit is contained in:
Peter Steinberger
2026-05-02 03:04:05 +01:00
parent d5c8d70f02
commit 8514e4c913
2 changed files with 38 additions and 1 deletions

View File

@@ -414,7 +414,15 @@ function expandInstalledDistImportClosure(params) {
if (!JS_DIST_FILE_RE.test(importerPath) || importerPath.includes("/node_modules/")) {
continue;
}
const source = params.readText(importerPath);
let source;
try {
source = params.readText(importerPath);
} catch (error) {
if (error?.code === "ENOENT") {
continue;
}
throw error;
}
for (const specifier of collectImportSpecifiers(source)) {
const importedPath = resolveDistImportPath(importerPath, specifier);
if (!importedPath || !fileSet.has(importedPath) || expectedSet.has(importedPath)) {