fix: remove plugin versions from marketplace.json and fix brittle test

- Remove plugin version fields from marketplace.json -- canonical
  versions live in each plugin's plugin.json. Duplicating them created
  drift that release-please couldn't maintain.
- Remove version sync logic from metadata.ts (description sync kept)
- Fix release-preview test to compute expected versions dynamically
  from current manifests instead of hardcoding them
This commit is contained in:
Trevin Chow
2026-03-18 01:45:49 -07:00
parent 8827524af4
commit 4952007cab
3 changed files with 8 additions and 14 deletions

View File

@@ -198,20 +198,14 @@ export async function syncReleaseMetadata(options: SyncOptions = {}): Promise<Me
for (const plugin of marketplaceClaude.plugins) {
if (plugin.name === "compound-engineering") {
if (plugin.version !== expectedCompoundVersion) {
plugin.version = expectedCompoundVersion
changed = true
}
if (plugin.description !== compoundMarketplaceDescription) {
plugin.description = compoundMarketplaceDescription
changed = true
}
}
if (plugin.name === "coding-tutor" && plugin.version !== expectedCodingTutorVersion) {
plugin.version = expectedCodingTutorVersion
changed = true
}
// Plugin versions are not synced in marketplace.json -- the canonical
// version lives in each plugin's own plugin.json. Duplicating versions
// here creates drift that release-please can't maintain.
}
updates.push({ path: marketplaceClaudePath, changed })