mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:10:44 +00:00
test(build): respect non-core plugin package metadata
This commit is contained in:
@@ -47,6 +47,10 @@ function collectPluginSourceEntries(packageJson) {
|
||||
return packageEntries.length > 0 ? packageEntries : ["./index.ts"];
|
||||
}
|
||||
|
||||
function shouldIncludeBundledPluginInCore(packageJson) {
|
||||
return packageJson?.openclaw?.bundle?.includeInCore !== false;
|
||||
}
|
||||
|
||||
function collectTopLevelPublicSurfaceEntries(pluginDir) {
|
||||
if (!fs.existsSync(pluginDir)) {
|
||||
return [];
|
||||
@@ -111,6 +115,9 @@ export function collectBundledPluginBuildEntries(params = {}) {
|
||||
if (!shouldBuildBundledCluster(dirent.name, env, { packageJson })) {
|
||||
continue;
|
||||
}
|
||||
if (!shouldIncludeBundledPluginInCore(packageJson)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
entries.push({
|
||||
id: dirent.name,
|
||||
|
||||
Reference in New Issue
Block a user