mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:50:43 +00:00
fix(release): stage runtime deps from plugin package root
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user