test(release): allow packaged discord runtime · openclaw/openclaw@f738263
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -190,6 +190,7 @@ describe("collectPublishablePluginPackageErrors", () => {
|
190 | 190 | |
191 | 191 | describe("collectPublishablePluginPackages", () => { |
192 | 192 | it("keeps publishable plugin dist trees out of the core npm package files list", () => { |
| 193 | +const corePackageRuntimePluginIds = new Set(["discord"]); |
193 | 194 | const rootPackage = JSON.parse(readFileSync("package.json", "utf8")) as { |
194 | 195 | files?: unknown; |
195 | 196 | }; |
@@ -199,7 +200,11 @@ describe("collectPublishablePluginPackages", () => {
|
199 | 200 | ...collectClawHubPublishablePluginPackages(), |
200 | 201 | ]; |
201 | 202 | const missingExclusions = Array.from( |
202 | | -new Set(publishablePlugins.map((plugin) => `!dist/extensions/${plugin.extensionId}/**`)), |
| 203 | +new Set( |
| 204 | +publishablePlugins |
| 205 | +.filter((plugin) => !corePackageRuntimePluginIds.has(plugin.extensionId)) |
| 206 | +.map((plugin) => `!dist/extensions/${plugin.extensionId}/**`), |
| 207 | +), |
203 | 208 | ).filter((entry) => !packageFiles.has(entry)); |
204 | 209 | |
205 | 210 | expect(missingExclusions).toEqual([]); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。