Skip to content

Commit 9bedcff

Browse files
committed
test(build): respect non-core plugin package metadata
1 parent eeea77a commit 9bedcff

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

extensions/qqbot/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
"build": {
5656
"openclawVersion": "2026.5.2"
5757
},
58+
"bundle": {
59+
"includeInCore": false
60+
},
5861
"release": {
5962
"publishToClawHub": true,
6063
"publishToNpm": true

scripts/lib/bundled-plugin-build-entries.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ function collectPluginSourceEntries(packageJson) {
4747
return packageEntries.length > 0 ? packageEntries : ["./index.ts"];
4848
}
4949

50+
function shouldIncludeBundledPluginInCore(packageJson) {
51+
return packageJson?.openclaw?.bundle?.includeInCore !== false;
52+
}
53+
5054
function collectTopLevelPublicSurfaceEntries(pluginDir) {
5155
if (!fs.existsSync(pluginDir)) {
5256
return [];
@@ -111,6 +115,9 @@ export function collectBundledPluginBuildEntries(params = {}) {
111115
if (!shouldBuildBundledCluster(dirent.name, env, { packageJson })) {
112116
continue;
113117
}
118+
if (!shouldIncludeBundledPluginInCore(packageJson)) {
119+
continue;
120+
}
114121

115122
entries.push({
116123
id: dirent.name,

0 commit comments

Comments
 (0)