fix: add cursor-marketplace as release-please component (#315)
This commit is contained in:
@@ -34,9 +34,18 @@ describe("release component detection", () => {
|
||||
])
|
||||
})
|
||||
|
||||
test("maps marketplace metadata without bumping plugin components", () => {
|
||||
test("maps claude marketplace metadata without bumping plugin components", () => {
|
||||
const components = detectComponentsFromFiles([".claude-plugin/marketplace.json"])
|
||||
expect(components.get("marketplace")).toEqual([".claude-plugin/marketplace.json"])
|
||||
expect(components.get("cursor-marketplace")).toEqual([])
|
||||
expect(components.get("compound-engineering")).toEqual([])
|
||||
expect(components.get("coding-tutor")).toEqual([])
|
||||
})
|
||||
|
||||
test("maps cursor marketplace metadata to cursor-marketplace component", () => {
|
||||
const components = detectComponentsFromFiles([".cursor-plugin/marketplace.json"])
|
||||
expect(components.get("cursor-marketplace")).toEqual([".cursor-plugin/marketplace.json"])
|
||||
expect(components.get("marketplace")).toEqual([])
|
||||
expect(components.get("compound-engineering")).toEqual([])
|
||||
expect(components.get("coding-tutor")).toEqual([])
|
||||
})
|
||||
|
||||
@@ -39,6 +39,7 @@ async function makeFixtureRoot(): Promise<string> {
|
||||
recursive: true,
|
||||
})
|
||||
await mkdir(path.join(root, ".claude-plugin"), { recursive: true })
|
||||
await mkdir(path.join(root, ".cursor-plugin"), { recursive: true })
|
||||
|
||||
await writeFile(
|
||||
path.join(root, "plugins", "compound-engineering", "agents", "review", "agent.md"),
|
||||
@@ -82,6 +83,20 @@ async function makeFixtureRoot(): Promise<string> {
|
||||
2,
|
||||
),
|
||||
)
|
||||
await writeFile(
|
||||
path.join(root, ".cursor-plugin", "marketplace.json"),
|
||||
JSON.stringify(
|
||||
{
|
||||
metadata: { version: "1.0.0", description: "marketplace" },
|
||||
plugins: [
|
||||
{ name: "compound-engineering", version: "2.41.0", description: "old" },
|
||||
{ name: "coding-tutor", version: "1.2.0", description: "old" },
|
||||
],
|
||||
},
|
||||
null,
|
||||
2,
|
||||
),
|
||||
)
|
||||
|
||||
return root
|
||||
}
|
||||
@@ -115,5 +130,6 @@ describe("release metadata", () => {
|
||||
|
||||
expect(changedPaths).toContain(path.join(root, "plugins", "compound-engineering", ".cursor-plugin", "plugin.json"))
|
||||
expect(changedPaths).toContain(path.join(root, ".claude-plugin", "marketplace.json"))
|
||||
expect(changedPaths).toContain(path.join(root, ".cursor-plugin", "marketplace.json"))
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user