mirror of
https://github.com/cline/cline.git
synced 2026-09-19 10:13:34 +08:00
vsce reads README.md from the extension root at vsce package / vsce
publish time and has no flag to point it elsewhere, so to use a
different README on the VS Code Marketplace than on the GitHub repo
landing page we swap README.marketplace.md into README.md just before
packaging and put the original back afterwards.
scripts/marketplace-readme.mjs is the shared swap helper. The swap is
idempotent so the CI step in publish.yml can wrap the whole
package-and-publish block while the inner npm scripts still swap
themselves when run locally.
Wired into all three marketplace-bound paths:
- npm run publish:marketplace and :prerelease via the new
scripts/publish-marketplace.mjs wrapper
- npm run publish:marketplace:nightly via publish-nightly.mjs
- The vsce package call in publish.yml that builds the .vsix
attached to the GitHub release, so manual installs match the
marketplace listing
README.marketplace.md starts as a verbatim copy of README.md; future
PRs can repurpose README.md as a multi-product landing page covering
the SDK, JetBrains plugin, CLI, and VS Code extension while the
marketplace listing stays focused on the VS Code UX.