Skip to content

Publishing

Preflight

Terminal window
vsceasy publish init

This ensures a README, CHANGELOG, an icon placeholder, the required package.json fields, and runs a dry-run vsce ls so you see exactly what would ship. See publish init.

Package

Terminal window
bun run package

Builds a production bundle (build:prod) and runs vsce package --no-dependencies, producing a .vsix.

Install locally

Test the packaged extension before publishing:

  • In VS Code: Extensions: Install from VSIX… and pick the generated file.
  • Or code --install-extension your-extension-x.y.z.vsix.

Publish

Use the vsce CLI with a publisher token:

Terminal window
npx vsce publish

Checklist

  • publisher, version, repository, categories set
  • icon present and referenced
  • README + CHANGELOG accurate
  • vsceasy doctor is clean
  • tested the .vsix locally