build: keep external provider deps out of core dist

This commit is contained in:
Peter Steinberger
2026-05-14 08:28:56 +01:00
parent 643dea2455
commit 11017c93cf
3 changed files with 6 additions and 3 deletions

View File

@@ -28,7 +28,8 @@
"pluginApi": ">=2026.5.12-beta.1"
},
"build": {
"openclawVersion": "2026.5.12-beta.1"
"openclawVersion": "2026.5.12-beta.1",
"bundledDist": false
},
"release": {
"publishToClawHub": true,

View File

@@ -110,11 +110,11 @@ describe("bundled plugin build entries", () => {
}
});
it("keeps external-only Amazon providers out of bundled dist entries", () => {
it("keeps external-only providers out of bundled dist entries", () => {
const entries = listBundledPluginBuildEntries();
const artifacts = listBundledPluginPackArtifacts();
for (const pluginId of ["amazon-bedrock", "amazon-bedrock-mantle"]) {
for (const pluginId of ["amazon-bedrock", "amazon-bedrock-mantle", "anthropic-vertex"]) {
expectNoPrefixMatches(Object.keys(entries), `extensions/${pluginId}/`);
expectNoPrefixMatches(artifacts, `dist/extensions/${pluginId}/`);
}

View File

@@ -165,6 +165,8 @@ const explicitNeverBundleDependencies = [
"@lancedb/lancedb",
"@larksuiteoapi/node-sdk",
"@matrix-org/matrix-sdk-crypto-nodejs",
"@slack/bolt",
"@slack/web-api",
"@vitest/expect",
"matrix-js-sdk",
"prism-media",