basant307/AI_Governance_Project
048
1"use strict";2Object.defineProperty(exports, "__esModule", { value: true });3exports.PackageManager = void 0;4exports.createVSIX = createVSIX;5exports.publish = publish;6exports.listFiles = listFiles;7exports.publishVSIX = publishVSIX;8exports.unpublishVSIX = unpublishVSIX;9const publish_1 = require("./publish");10const package_1 = require("./package");11/**12 * The supported list of package managers.13 * @public14 */15var PackageManager;16(function (PackageManager) {17 PackageManager[PackageManager["Npm"] = 0] = "Npm";18 PackageManager[PackageManager["Yarn"] = 1] = "Yarn";19 PackageManager[PackageManager["None"] = 2] = "None";20})(PackageManager || (exports.PackageManager = PackageManager = {}));21/**22 * Creates a VSIX from the extension in the current working directory.23 * @public24 */25function createVSIX(options = {}) {26 return (0, package_1.packageCommand)(options);27}28/**29 * Publishes the extension in the current working directory.30 * @public31 */32function publish(options = {}) {33 return (0, publish_1.publish)(options);34}35/**36 * Lists the files included in the extension's package.37 * @public38 */39function listFiles(options = {}) {40 return (0, package_1.listFiles)({41 ...options,42 useYarn: options.packageManager === PackageManager.Yarn,43 dependencies: options.packageManager !== PackageManager.None,44 });45}46/**47 * Publishes a pre-build VSIX.48 * @public49 */50function publishVSIX(packagePath, options = {}) {51 return (0, publish_1.publish)({52 packagePath: typeof packagePath === 'string' ? [packagePath] : packagePath,53 ...options,54 targets: typeof options.target === 'string' ? [options.target] : undefined,55 ...{ target: undefined },56 });57}58/**59 * Deletes a specific extension from the marketplace.60 * @public61 */62function unpublishVSIX(options = {}) {63 return (0, publish_1.unpublish)({ force: true, ...options });64}65//# sourceMappingURL=api.js.map