vsix-builder
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

vsix-builder

npm version npm downloads jsr version

A programmatic way to create VSIX files for Visual Studio Code extensions.

[!IMPORTANT] This package is still in development and may not work as expected. Please report any issues you encounter.

📦 Installation

npm install vsix-builder

🚀 Usage

import { createVsix } from "vsix-builder";

const vsix = await createVsix({
  write: true,
  forceWrite: true,
  cwd: "./",
  packageManager: "pnpm",
});

if (vsix.errors.length > 0) {
  console.error("some errors occurred while creating the vsix package");

  for (const error of vsix.errors) {
    console.error(` - ${error.type}${"message" in error ? `: ${error.message}` : ""}`);
  }

  return;
}

if (!vsix.written) {
  console.warn("no vsix package was created, as you are in dry-run mode");
  return;
}

📄 License

Published under MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i vsix-builder

Weekly Downloads

12

Version

0.0.3

License

MIT

Unpacked Size

16.7 kB

Total Files

7

Last publish

Collaborators

  • luxass