From da858c326bd61daea9937b5e997eb5c042192a6f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 8 Apr 2026 02:42:42 +0100 Subject: [PATCH] build: exclude plugin sdk build info from npm pack --- package.json | 1 + scripts/release-check.ts | 7 ++++++- test/release-check.test.ts | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index afa859f7e4a..fc5ce67a060 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "assets/", "dist/", "!dist/**/*.map", + "!dist/plugin-sdk/.tsbuildinfo", "docs/", "!docs/.generated/**", "!docs/.i18n/zh-CN.tm.jsonl", diff --git a/scripts/release-check.ts b/scripts/release-check.ts index 5d191a7d69b..54a7a5d451f 100755 --- a/scripts/release-check.ts +++ b/scripts/release-check.ts @@ -33,7 +33,12 @@ const requiredPathGroups = [ "dist/channel-catalog.json", "dist/control-ui/index.html", ]; -const forbiddenPrefixes = ["dist-runtime/", "dist/OpenClaw.app/", "docs/.generated/"]; +const forbiddenPrefixes = [ + "dist-runtime/", + "dist/OpenClaw.app/", + "dist/plugin-sdk/.tsbuildinfo", + "docs/.generated/", +]; // 2026.3.12 ballooned to ~213.6 MiB unpacked and correlated with low-memory // startup/doctor OOM reports. Keep enough headroom for the current pack with // restored bundled upgrade surfaces and Control UI assets while still catching diff --git a/test/release-check.test.ts b/test/release-check.test.ts index 76d3d5160dc..e8f8ffc11de 100644 --- a/test/release-check.test.ts +++ b/test/release-check.test.ts @@ -256,6 +256,12 @@ describe("collectForbiddenPackPaths", () => { "docs/.generated/config-baseline.json", ]); }); + + it("blocks plugin SDK TypeScript build info from npm pack output", () => { + expect(collectForbiddenPackPaths(["dist/index.js", "dist/plugin-sdk/.tsbuildinfo"])).toEqual([ + "dist/plugin-sdk/.tsbuildinfo", + ]); + }); }); describe("collectMissingPackPaths", () => {