From a9219c70004b3f99891546388176e34ce68ac4c2 Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Sun, 12 Apr 2026 03:06:03 -0700 Subject: [PATCH] test: cover shipped plugin metadata in npm pack --- tests/scripts/build-opencode.test.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/scripts/build-opencode.test.js b/tests/scripts/build-opencode.test.js index b53fabaa..f9607f06 100644 --- a/tests/scripts/build-opencode.test.js +++ b/tests/scripts/build-opencode.test.js @@ -71,10 +71,30 @@ function main() { packagedPaths.has(".claude-plugin/marketplace.json"), "npm pack should include .claude-plugin/marketplace.json" ) + assert.ok( + packagedPaths.has(".claude-plugin/plugin.json"), + "npm pack should include .claude-plugin/plugin.json" + ) + assert.ok( + packagedPaths.has(".codex-plugin/plugin.json"), + "npm pack should include .codex-plugin/plugin.json" + ) + assert.ok( + packagedPaths.has(".agents/plugins/marketplace.json"), + "npm pack should include .agents/plugins/marketplace.json" + ) + assert.ok( + packagedPaths.has(".opencode/package.json"), + "npm pack should include .opencode/package.json" + ) assert.ok( packagedPaths.has("agent.yaml"), "npm pack should include agent.yaml" ) + assert.ok( + packagedPaths.has("AGENTS.md"), + "npm pack should include AGENTS.md" + ) assert.ok( packagedPaths.has("VERSION"), "npm pack should include VERSION"