From 11017c93cf14293e9a5ab6db4ad147d9be648026 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 14 May 2026 08:28:56 +0100 Subject: [PATCH] build: keep external provider deps out of core dist --- extensions/anthropic-vertex/package.json | 3 ++- test/scripts/bundled-plugin-build-entries.test.ts | 4 ++-- tsdown.config.ts | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/extensions/anthropic-vertex/package.json b/extensions/anthropic-vertex/package.json index 70dcbe9582f3..16504906773e 100644 --- a/extensions/anthropic-vertex/package.json +++ b/extensions/anthropic-vertex/package.json @@ -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, diff --git a/test/scripts/bundled-plugin-build-entries.test.ts b/test/scripts/bundled-plugin-build-entries.test.ts index cf7d51a342f3..801bed757278 100644 --- a/test/scripts/bundled-plugin-build-entries.test.ts +++ b/test/scripts/bundled-plugin-build-entries.test.ts @@ -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}/`); } diff --git a/tsdown.config.ts b/tsdown.config.ts index 108c8a47a0a4..7efcc411ddf1 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -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",