1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.publishVSIX = exports.listFiles = exports.publish = exports.createVSIX = exports.PackageManager = void 0;
|
4 | const publish_1 = require("./publish");
|
5 | const package_1 = require("./package");
|
6 |
|
7 |
|
8 |
|
9 | var PackageManager;
|
10 | (function (PackageManager) {
|
11 | PackageManager[PackageManager["Npm"] = 0] = "Npm";
|
12 | PackageManager[PackageManager["Yarn"] = 1] = "Yarn";
|
13 | PackageManager[PackageManager["None"] = 2] = "None";
|
14 | })(PackageManager = exports.PackageManager || (exports.PackageManager = {}));
|
15 |
|
16 |
|
17 |
|
18 | function createVSIX(options = {}) {
|
19 | return (0, package_1.packageCommand)(options);
|
20 | }
|
21 | exports.createVSIX = createVSIX;
|
22 |
|
23 |
|
24 |
|
25 | function publish(options = {}) {
|
26 | return (0, publish_1.publish)(options);
|
27 | }
|
28 | exports.publish = publish;
|
29 |
|
30 |
|
31 |
|
32 | function listFiles(options = {}) {
|
33 | return (0, package_1.listFiles)(options);
|
34 | }
|
35 | exports.listFiles = listFiles;
|
36 |
|
37 |
|
38 |
|
39 | function publishVSIX(packagePath, options = {}) {
|
40 | return (0, publish_1.publish)({
|
41 | packagePath: typeof packagePath === 'string' ? [packagePath] : packagePath,
|
42 | ...options,
|
43 | targets: typeof options.target === 'string' ? [options.target] : undefined,
|
44 | ...{ target: undefined },
|
45 | });
|
46 | }
|
47 | exports.publishVSIX = publishVSIX;
|
48 |
|
\ | No newline at end of file |