mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 12:10:23 +00:00
fix(release): ship bundled plugins in pack artifacts
This commit is contained in:
@@ -40,6 +40,9 @@ describe("tsdown config", () => {
|
||||
"plugin-sdk/compat",
|
||||
"plugin-sdk/index",
|
||||
"extensions/openai/index",
|
||||
"extensions/matrix/index",
|
||||
"extensions/msteams/index",
|
||||
"extensions/whatsapp/index",
|
||||
"bundled/boot-md/handler",
|
||||
]),
|
||||
);
|
||||
|
||||
@@ -361,4 +361,25 @@ describe("copyBundledPluginMetadata", () => {
|
||||
|
||||
expect(fs.existsSync(path.join(repoRoot, "dist", "extensions", "acpx"))).toBe(false);
|
||||
});
|
||||
|
||||
it("still bundles previously released optional plugins without the opt-in env", () => {
|
||||
const repoRoot = makeRepoRoot("openclaw-bundled-plugin-released-optional-");
|
||||
const pluginDir = path.join(repoRoot, "extensions", "whatsapp");
|
||||
fs.mkdirSync(pluginDir, { recursive: true });
|
||||
writeJson(path.join(pluginDir, "openclaw.plugin.json"), {
|
||||
id: "whatsapp",
|
||||
configSchema: { type: "object" },
|
||||
});
|
||||
writeJson(path.join(pluginDir, "package.json"), {
|
||||
name: "@openclaw/whatsapp",
|
||||
openclaw: {
|
||||
extensions: ["./index.ts"],
|
||||
install: { npmSpec: "@openclaw/whatsapp" },
|
||||
},
|
||||
});
|
||||
|
||||
copyBundledPluginMetadataWithEnv({ repoRoot, env: {} });
|
||||
|
||||
expect(fs.existsSync(path.join(repoRoot, "dist", "extensions", "whatsapp"))).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user