Skip to content

Commit 3ad4ebb

Browse files
ARHAEEMclaude
andcommitted
fix(build): replace banner and architecture <picture> SVG blocks for Marketplace packaging
vsce rejects any SVG URL in README.md. The docs commit (810f004) added <picture> blocks with dark/light SVG variants for both the banner and the architecture diagram. The package-vsix.cjs script only replaced specific named SVGs but not these new <picture> blocks, causing packx to fail. Added two new replacements that swap each <picture> block with its PNG equivalent: - banner <picture> → banner.png - architecture <picture> → architecture.png Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c0b700b commit 3ad4ebb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/extension/scripts/package-vsix.cjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ run('node', ['scripts/prepare-package-deps.mjs'], repoRoot);
7979
const readmeSrc = path.join(repoRoot, 'README.md');
8080
const readmeDst = path.join(packageRoot, 'README.md');
8181
let readme = fs.readFileSync(readmeSrc, 'utf8');
82+
// Replace all <picture> blocks (dark/light SVG variants) with PNG fallbacks.
83+
// vsce rejects any SVG URL in README, including inside <picture> srcset attributes.
84+
readme = readme.replace(
85+
/<picture>[\s\S]*?banner[^<]*<\/picture>/,
86+
'<img src="https://raw.githubusercontent.com/Automations-Project/VSCode-Airtable-Formula/main/packages/mcp-server/assets/banner.png" alt="airtable-user-mcp" width="900" />'
87+
);
88+
readme = readme.replace(
89+
/<picture>[\s\S]*?architecture[^<]*<\/picture>/,
90+
'<img src="https://raw.githubusercontent.com/Automations-Project/VSCode-Airtable-Formula/main/packages/mcp-server/assets/architecture.png" alt="Architecture diagram" width="900" />'
91+
);
8292
// Replace Airtable SVG logo with the extension PNG icon
8393
readme = readme.replace(
8494
/<img src="[^"]*airtable\.svg"[^/]*\/>/,

0 commit comments

Comments
 (0)