mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:30:44 +00:00
fix(plugins): repair missing clawhub installs
This commit is contained in:
@@ -293,15 +293,17 @@ function resolveInstallRoute(packageJson, status) {
|
||||
}
|
||||
const install = packageJson.openclaw?.install;
|
||||
const release = packageJson.openclaw?.release;
|
||||
const clawhubSpec =
|
||||
typeof install?.clawhubSpec === "string" ? `: \`${install.clawhubSpec}\`` : "";
|
||||
const npmSpec =
|
||||
typeof install?.npmSpec === "string" && install.npmSpec !== packageJson.name
|
||||
? `: \`${install.npmSpec}\``
|
||||
: "";
|
||||
if (release?.publishToClawHub === true && release?.publishToNpm === true) {
|
||||
return `ClawHub + npm${npmSpec}`;
|
||||
return clawhubSpec ? `ClawHub${clawhubSpec}; npm${npmSpec}` : `ClawHub + npm${npmSpec}`;
|
||||
}
|
||||
if (release?.publishToClawHub === true) {
|
||||
return `ClawHub${npmSpec}`;
|
||||
return `ClawHub${clawhubSpec || npmSpec}`;
|
||||
}
|
||||
if (release?.publishToNpm === true || typeof install?.npmSpec === "string") {
|
||||
return `npm${npmSpec}`;
|
||||
@@ -311,7 +313,9 @@ function resolveInstallRoute(packageJson, status) {
|
||||
|
||||
function resolveStatus({ dirName, packageJson, excludedDirs }) {
|
||||
const release = packageJson.openclaw?.release;
|
||||
const hasInstallSpec = typeof packageJson.openclaw?.install?.npmSpec === "string";
|
||||
const hasInstallSpec =
|
||||
typeof packageJson.openclaw?.install?.clawhubSpec === "string" ||
|
||||
typeof packageJson.openclaw?.install?.npmSpec === "string";
|
||||
const excluded =
|
||||
excludedDirs.has(dirName) || packageJson.openclaw?.bundle?.includeInCore === false;
|
||||
if (!excluded) {
|
||||
|
||||
Reference in New Issue
Block a user