oclif 4.4.18 → 4.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/generate/command.js +4 -1
- package/lib/commands/generate/hook.js +28 -2
- package/lib/commands/generate.js +4 -1
- package/lib/commands/lock.js +24 -1
- package/lib/commands/manifest.js +30 -4
- package/lib/commands/pack/deb.js +27 -4
- package/lib/commands/pack/macos.js +27 -4
- package/lib/commands/pack/tarballs.js +24 -1
- package/lib/commands/pack/win.js +25 -2
- package/lib/commands/promote.js +29 -3
- package/lib/commands/readme.js +25 -2
- package/lib/commands/upload/deb.js +30 -4
- package/lib/commands/upload/macos.js +29 -3
- package/lib/commands/upload/tarballs.js +29 -3
- package/lib/commands/upload/win.js +29 -3
- package/lib/generators/cli.d.ts +2 -2
- package/lib/generators/cli.js +33 -6
- package/lib/generators/command.d.ts +1 -1
- package/lib/generators/command.js +29 -3
- package/lib/generators/hook.d.ts +1 -1
- package/lib/generators/hook.js +29 -3
- package/lib/log.js +24 -1
- package/lib/tarballs/bin.js +25 -2
- package/lib/tarballs/build.js +30 -4
- package/lib/tarballs/config.js +25 -2
- package/lib/tarballs/node.js +30 -4
- package/lib/util.js +25 -2
- package/lib/version-indexes.js +29 -3
- package/oclif.manifest.json +1 -1
- package/package.json +7 -6
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const command_base_1 = require("./../../command-base");
|
|
7
|
+
const command_base_1 = __importDefault(require("./../../command-base"));
|
|
5
8
|
class GenerateCommand extends command_base_1.default {
|
|
6
9
|
static args = {
|
|
7
10
|
name: core_1.Args.string({ description: 'name of command', required: true }),
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const fs = require("fs-extra");
|
|
30
|
+
const fs = __importStar(require("fs-extra"));
|
|
5
31
|
const node_path_1 = require("node:path");
|
|
6
|
-
const command_base_1 = require("./../../command-base");
|
|
32
|
+
const command_base_1 = __importDefault(require("./../../command-base"));
|
|
7
33
|
class GenerateHook extends command_base_1.default {
|
|
8
34
|
static args = {
|
|
9
35
|
name: core_1.Args.string({ description: 'name of hook (snake_case)', required: true }),
|
package/lib/commands/generate.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const command_base_1 = require("./../command-base");
|
|
7
|
+
const command_base_1 = __importDefault(require("./../command-base"));
|
|
5
8
|
class Generate extends command_base_1.default {
|
|
6
9
|
static args = {
|
|
7
10
|
name: core_1.Args.string({ description: 'directory name of new project', required: true }),
|
package/lib/commands/lock.js
CHANGED
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const fs = require("node:fs/promises");
|
|
27
|
+
const fs = __importStar(require("node:fs/promises"));
|
|
5
28
|
const fileExists = async (path) => {
|
|
6
29
|
try {
|
|
7
30
|
await fs.access(path);
|
package/lib/commands/manifest.js
CHANGED
|
@@ -1,11 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
const core_1 = require("@oclif/core");
|
|
4
30
|
const fs_extra_1 = require("fs-extra");
|
|
5
|
-
const got_1 = require("got");
|
|
31
|
+
const got_1 = __importDefault(require("got"));
|
|
6
32
|
const node_child_process_1 = require("node:child_process");
|
|
7
|
-
const os = require("node:os");
|
|
8
|
-
const path = require("node:path");
|
|
33
|
+
const os = __importStar(require("node:os"));
|
|
34
|
+
const path = __importStar(require("node:path"));
|
|
9
35
|
const node_stream_1 = require("node:stream");
|
|
10
36
|
const node_util_1 = require("node:util");
|
|
11
37
|
const semver_1 = require("semver");
|
|
@@ -76,7 +102,7 @@ class Manifest extends core_1.Command {
|
|
|
76
102
|
throw new Error('plugin not found');
|
|
77
103
|
await plugin.load();
|
|
78
104
|
if (!plugin.valid) {
|
|
79
|
-
const { PluginLegacy } = await
|
|
105
|
+
const { PluginLegacy } = await import('@oclif/plugin-legacy');
|
|
80
106
|
plugin = new PluginLegacy(this.config, plugin);
|
|
81
107
|
await plugin.load();
|
|
82
108
|
}
|
package/lib/commands/pack/deb.js
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const fs = require("fs-extra");
|
|
27
|
+
const fs = __importStar(require("fs-extra"));
|
|
5
28
|
const node_child_process_1 = require("node:child_process");
|
|
6
|
-
const fsPromises = require("node:fs/promises");
|
|
7
|
-
const path = require("node:path");
|
|
29
|
+
const fsPromises = __importStar(require("node:fs/promises"));
|
|
30
|
+
const path = __importStar(require("node:path"));
|
|
8
31
|
const node_util_1 = require("node:util");
|
|
9
|
-
const Tarballs = require("../../tarballs");
|
|
32
|
+
const Tarballs = __importStar(require("../../tarballs"));
|
|
10
33
|
const upload_util_1 = require("../../upload-util");
|
|
11
34
|
const util_1 = require("../../util");
|
|
12
35
|
const exec = (0, node_util_1.promisify)(node_child_process_1.exec);
|
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const fs = require("fs-extra");
|
|
27
|
+
const fs = __importStar(require("fs-extra"));
|
|
5
28
|
const node_child_process_1 = require("node:child_process");
|
|
6
|
-
const os = require("node:os");
|
|
7
|
-
const path = require("node:path");
|
|
29
|
+
const os = __importStar(require("node:os"));
|
|
30
|
+
const path = __importStar(require("node:path"));
|
|
8
31
|
const node_util_1 = require("node:util");
|
|
9
|
-
const Tarballs = require("../../tarballs");
|
|
32
|
+
const Tarballs = __importStar(require("../../tarballs"));
|
|
10
33
|
const upload_util_1 = require("../../upload-util");
|
|
11
34
|
const util_1 = require("../../util");
|
|
12
35
|
const exec = (0, node_util_1.promisify)(node_child_process_1.exec);
|
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const Tarballs = require("../../tarballs");
|
|
27
|
+
const Tarballs = __importStar(require("../../tarballs"));
|
|
5
28
|
class PackTarballs extends core_1.Command {
|
|
6
29
|
static description = `packages oclif CLI into tarballs
|
|
7
30
|
|
package/lib/commands/pack/win.js
CHANGED
|
@@ -1,13 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
const core_1 = require("@oclif/core");
|
|
4
27
|
const fs_extra_1 = require("fs-extra");
|
|
5
28
|
const node_child_process_1 = require("node:child_process");
|
|
6
29
|
const node_fs_1 = require("node:fs");
|
|
7
30
|
const promises_1 = require("node:fs/promises");
|
|
8
|
-
const path = require("node:path");
|
|
31
|
+
const path = __importStar(require("node:path"));
|
|
9
32
|
const node_util_1 = require("node:util");
|
|
10
|
-
const Tarballs = require("../../tarballs");
|
|
33
|
+
const Tarballs = __importStar(require("../../tarballs"));
|
|
11
34
|
const upload_util_1 = require("../../upload-util");
|
|
12
35
|
const exec = (0, node_util_1.promisify)(node_child_process_1.exec);
|
|
13
36
|
const scripts = {
|
package/lib/commands/promote.js
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
4
30
|
const core_1 = require("@oclif/core");
|
|
5
|
-
const path = require("node:path");
|
|
6
|
-
const aws_1 = require("../aws");
|
|
7
|
-
const Tarballs = require("../tarballs");
|
|
31
|
+
const path = __importStar(require("node:path"));
|
|
32
|
+
const aws_1 = __importDefault(require("../aws"));
|
|
33
|
+
const Tarballs = __importStar(require("../tarballs"));
|
|
8
34
|
const upload_util_1 = require("../upload-util");
|
|
9
35
|
const util_1 = require("../util");
|
|
10
36
|
const version_indexes_1 = require("../version-indexes");
|
package/lib/commands/readme.js
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const fs = require("fs-extra");
|
|
5
|
-
const path = require("node:path");
|
|
27
|
+
const fs = __importStar(require("fs-extra"));
|
|
28
|
+
const path = __importStar(require("node:path"));
|
|
6
29
|
const node_url_1 = require("node:url");
|
|
7
30
|
const help_compatibility_1 = require("../help-compatibility");
|
|
8
31
|
const util_1 = require("../util");
|
|
@@ -1,11 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const fs = require("node:fs");
|
|
5
|
-
const path = require("node:path");
|
|
6
|
-
const aws_1 = require("../../aws");
|
|
30
|
+
const fs = __importStar(require("node:fs"));
|
|
31
|
+
const path = __importStar(require("node:path"));
|
|
32
|
+
const aws_1 = __importDefault(require("../../aws"));
|
|
7
33
|
const log_1 = require("../../log");
|
|
8
|
-
const Tarballs = require("../../tarballs");
|
|
34
|
+
const Tarballs = __importStar(require("../../tarballs"));
|
|
9
35
|
const upload_util_1 = require("../../upload-util");
|
|
10
36
|
class UploadDeb extends core_1.Command {
|
|
11
37
|
static description = 'upload deb package built with pack:deb';
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const fs = require("node:fs");
|
|
5
|
-
const aws_1 = require("../../aws");
|
|
30
|
+
const fs = __importStar(require("node:fs"));
|
|
31
|
+
const aws_1 = __importDefault(require("../../aws"));
|
|
6
32
|
const log_1 = require("../../log");
|
|
7
|
-
const Tarballs = require("../../tarballs");
|
|
33
|
+
const Tarballs = __importStar(require("../../tarballs"));
|
|
8
34
|
const upload_util_1 = require("../../upload-util");
|
|
9
35
|
const util_1 = require("../../util");
|
|
10
36
|
class UploadMacos extends core_1.Command {
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const fs = require("node:fs");
|
|
5
|
-
const aws_1 = require("../../aws");
|
|
30
|
+
const fs = __importStar(require("node:fs"));
|
|
31
|
+
const aws_1 = __importDefault(require("../../aws"));
|
|
6
32
|
const log_1 = require("../../log");
|
|
7
|
-
const Tarballs = require("../../tarballs");
|
|
33
|
+
const Tarballs = __importStar(require("../../tarballs"));
|
|
8
34
|
const upload_util_1 = require("../../upload-util");
|
|
9
35
|
class UploadTarballs extends core_1.Command {
|
|
10
36
|
static description = `upload an oclif CLI to S3
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const fs = require("node:fs");
|
|
5
|
-
const aws_1 = require("../../aws");
|
|
30
|
+
const fs = __importStar(require("node:fs"));
|
|
31
|
+
const aws_1 = __importDefault(require("../../aws"));
|
|
6
32
|
const log_1 = require("../../log");
|
|
7
|
-
const Tarballs = require("../../tarballs");
|
|
33
|
+
const Tarballs = __importStar(require("../../tarballs"));
|
|
8
34
|
const upload_util_1 = require("../../upload-util");
|
|
9
35
|
class UploadWin extends core_1.Command {
|
|
10
36
|
static description = 'upload windows installers built with pack:win';
|
package/lib/generators/cli.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Interfaces } from '@oclif/core';
|
|
2
|
-
import
|
|
2
|
+
import Generator from 'yeoman-generator';
|
|
3
3
|
export default class CLI extends Generator {
|
|
4
4
|
answers: {
|
|
5
5
|
author: string;
|
|
@@ -36,6 +36,6 @@ export default class CLI extends Generator {
|
|
|
36
36
|
constructor(args: string | string[], opts: Generator.GeneratorOptions);
|
|
37
37
|
end(): void;
|
|
38
38
|
prompting(): Promise<void>;
|
|
39
|
-
writing(): void
|
|
39
|
+
writing(): Promise<void>;
|
|
40
40
|
private _gitignore;
|
|
41
41
|
}
|
package/lib/generators/cli.js
CHANGED
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
const node_child_process_1 = require("node:child_process");
|
|
4
|
-
const fs = require("node:fs");
|
|
5
|
-
const path = require("node:path");
|
|
6
|
-
const
|
|
30
|
+
const fs = __importStar(require("node:fs"));
|
|
31
|
+
const path = __importStar(require("node:path"));
|
|
32
|
+
const yeoman_generator_1 = __importDefault(require("yeoman-generator"));
|
|
7
33
|
const util_1 = require("../util");
|
|
8
34
|
const debug = require('debug')('generator-oclif');
|
|
9
35
|
const { version } = require('../../package.json');
|
|
@@ -16,7 +42,7 @@ catch { }
|
|
|
16
42
|
function removeKey(obj, key) {
|
|
17
43
|
delete obj[key];
|
|
18
44
|
}
|
|
19
|
-
class CLI extends
|
|
45
|
+
class CLI extends yeoman_generator_1.default {
|
|
20
46
|
answers;
|
|
21
47
|
githubUser;
|
|
22
48
|
name;
|
|
@@ -204,14 +230,15 @@ class CLI extends Generator {
|
|
|
204
230
|
this.pjson.scripts = Object.fromEntries(Object.entries(scripts).map(([k, v]) => [k, v.replace('yarn', 'npm run')]));
|
|
205
231
|
}
|
|
206
232
|
}
|
|
207
|
-
writing() {
|
|
233
|
+
async writing() {
|
|
234
|
+
const { default: sortPackageJson } = await import('sort-package-json');
|
|
208
235
|
if (this.pjson.oclif && Array.isArray(this.pjson.oclif.plugins)) {
|
|
209
236
|
this.pjson.oclif.plugins.sort();
|
|
210
237
|
}
|
|
211
238
|
if ((0, util_1.isEmpty)(this.pjson.oclif))
|
|
212
239
|
removeKey(this.pjson, 'oclif');
|
|
213
240
|
this.pjson.files = (0, util_1.uniq)((this.pjson.files || []).sort());
|
|
214
|
-
this.fs.writeJSON(this.destinationPath('./package.json'), this.pjson);
|
|
241
|
+
this.fs.writeJSON(this.destinationPath('./package.json'), sortPackageJson(this.pjson));
|
|
215
242
|
this.fs.write(this.destinationPath('.gitignore'), this._gitignore());
|
|
216
243
|
this.fs.delete(this.destinationPath('LICENSE'));
|
|
217
244
|
}
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
const change_case_1 = require("change-case");
|
|
4
|
-
const path = require("node:path");
|
|
5
|
-
const
|
|
30
|
+
const path = __importStar(require("node:path"));
|
|
31
|
+
const yeoman_generator_1 = __importDefault(require("yeoman-generator"));
|
|
6
32
|
const { version } = require('../../package.json');
|
|
7
|
-
class Command extends
|
|
33
|
+
class Command extends yeoman_generator_1.default {
|
|
8
34
|
options;
|
|
9
35
|
pjson;
|
|
10
36
|
constructor(args, opts) {
|
package/lib/generators/hook.d.ts
CHANGED
package/lib/generators/hook.js
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const path = require("node:path");
|
|
4
|
-
const
|
|
29
|
+
const path = __importStar(require("node:path"));
|
|
30
|
+
const yeoman_generator_1 = __importDefault(require("yeoman-generator"));
|
|
5
31
|
const util_1 = require("../util");
|
|
6
32
|
const { version } = require('../../package.json');
|
|
7
|
-
class Hook extends
|
|
33
|
+
class Hook extends yeoman_generator_1.default {
|
|
8
34
|
options;
|
|
9
35
|
pjson;
|
|
10
36
|
constructor(args, options) {
|
package/lib/log.js
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.log = exports.debug = void 0;
|
|
4
27
|
const core_1 = require("@oclif/core");
|
|
5
|
-
const util = require("node:util");
|
|
28
|
+
const util = __importStar(require("node:util"));
|
|
6
29
|
const util_1 = require("./util");
|
|
7
30
|
exports.debug = require('debug')('oclif');
|
|
8
31
|
exports.debug.new = (name) => require('debug')(`oclif:${name}`);
|
package/lib/tarballs/bin.js
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.writeBinScripts = void 0;
|
|
4
27
|
const node_child_process_1 = require("node:child_process");
|
|
5
|
-
const fs = require("node:fs");
|
|
6
|
-
const path = require("node:path");
|
|
28
|
+
const fs = __importStar(require("node:fs"));
|
|
29
|
+
const path = __importStar(require("node:path"));
|
|
7
30
|
const node_util_1 = require("node:util");
|
|
8
31
|
const exec = (0, node_util_1.promisify)(node_child_process_1.exec);
|
|
9
32
|
async function writeBinScripts({ baseWorkspace, config, nodeOptions, nodeVersion, }) {
|
package/lib/tarballs/build.js
CHANGED
|
@@ -1,12 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.build = void 0;
|
|
4
|
-
const
|
|
30
|
+
const find_yarn_workspace_root_1 = __importDefault(require("find-yarn-workspace-root"));
|
|
5
31
|
const fs_extra_1 = require("fs-extra");
|
|
6
32
|
const node_child_process_1 = require("node:child_process");
|
|
7
33
|
const node_fs_1 = require("node:fs");
|
|
8
34
|
const promises_1 = require("node:fs/promises");
|
|
9
|
-
const path = require("node:path");
|
|
35
|
+
const path = __importStar(require("node:path"));
|
|
10
36
|
const node_util_1 = require("node:util");
|
|
11
37
|
const log_1 = require("../log");
|
|
12
38
|
const upload_util_1 = require("../upload-util");
|
|
@@ -88,7 +114,7 @@ async function build(c, options = {}) {
|
|
|
88
114
|
await (0, fs_extra_1.writeJSON)(pjsonPath, pjson, { spaces: 2 });
|
|
89
115
|
};
|
|
90
116
|
const addDependencies = async () => {
|
|
91
|
-
const yarnRoot =
|
|
117
|
+
const yarnRoot = (0, find_yarn_workspace_root_1.default)(c.root) || c.root;
|
|
92
118
|
if (isYarnProject(yarnRoot)) {
|
|
93
119
|
await copyCoreYarnFiles(yarnRoot, c.workspace());
|
|
94
120
|
const { stdout } = await exec('yarn -v');
|
|
@@ -121,7 +147,7 @@ async function build(c, options = {}) {
|
|
|
121
147
|
};
|
|
122
148
|
const pretarball = async () => {
|
|
123
149
|
const pjson = await (0, fs_extra_1.readJSON)(path.join(c.workspace(), 'package.json'));
|
|
124
|
-
const yarnRoot =
|
|
150
|
+
const yarnRoot = (0, find_yarn_workspace_root_1.default)(c.root) || c.root;
|
|
125
151
|
const yarn = (0, node_fs_1.existsSync)(path.join(yarnRoot, 'yarn.lock'));
|
|
126
152
|
if (pjson.scripts.pretarball) {
|
|
127
153
|
yarn
|
package/lib/tarballs/config.js
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.buildConfig = exports.gitSha = exports.TARGETS = void 0;
|
|
4
27
|
const core_1 = require("@oclif/core");
|
|
5
28
|
const node_child_process_1 = require("node:child_process");
|
|
6
29
|
const promises_1 = require("node:fs/promises");
|
|
7
|
-
const path = require("node:path");
|
|
30
|
+
const path = __importStar(require("node:path"));
|
|
8
31
|
const node_util_1 = require("node:util");
|
|
9
|
-
const semver = require("semver");
|
|
32
|
+
const semver = __importStar(require("semver"));
|
|
10
33
|
const upload_util_1 = require("../upload-util");
|
|
11
34
|
const util_1 = require("../util");
|
|
12
35
|
const exec = (0, node_util_1.promisify)(node_child_process_1.exec);
|
package/lib/tarballs/node.js
CHANGED
|
@@ -1,13 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.fetchNodeBinary = void 0;
|
|
4
|
-
const
|
|
30
|
+
const async_retry_1 = __importDefault(require("async-retry"));
|
|
5
31
|
const fs_extra_1 = require("fs-extra");
|
|
6
|
-
const got_1 = require("got");
|
|
32
|
+
const got_1 = __importDefault(require("got"));
|
|
7
33
|
const node_child_process_1 = require("node:child_process");
|
|
8
34
|
const node_fs_1 = require("node:fs");
|
|
9
35
|
const promises_1 = require("node:fs/promises");
|
|
10
|
-
const path = require("node:path");
|
|
36
|
+
const path = __importStar(require("node:path"));
|
|
11
37
|
const promises_2 = require("node:stream/promises");
|
|
12
38
|
const node_util_1 = require("node:util");
|
|
13
39
|
const log_1 = require("../log");
|
|
@@ -58,7 +84,7 @@ async function fetchNodeBinary({ arch, nodeVersion, output, platform, tmp }) {
|
|
|
58
84
|
}
|
|
59
85
|
};
|
|
60
86
|
if (!(0, node_fs_1.existsSync)(cache)) {
|
|
61
|
-
await
|
|
87
|
+
await (0, async_retry_1.default)(download, {
|
|
62
88
|
factor: 1,
|
|
63
89
|
maxTimeout: RETRY_TIMEOUT_MS,
|
|
64
90
|
minTimeout: RETRY_TIMEOUT_MS,
|
package/lib/util.js
CHANGED
|
@@ -1,11 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.isEmpty = exports.checkFor7Zip = exports.hash = exports.prettifyPaths = exports.sortVersionsObjectByKeysDesc = exports.template = exports.sortBy = exports.uniq = exports.compact = exports.uniqBy = exports.castArray = void 0;
|
|
4
27
|
const core_1 = require("@oclif/core");
|
|
5
28
|
const node_child_process_1 = require("node:child_process");
|
|
6
|
-
const crypto = require("node:crypto");
|
|
29
|
+
const crypto = __importStar(require("node:crypto"));
|
|
7
30
|
const node_fs_1 = require("node:fs");
|
|
8
|
-
const os = require("node:os");
|
|
31
|
+
const os = __importStar(require("node:os"));
|
|
9
32
|
const node_util_1 = require("node:util");
|
|
10
33
|
const log_1 = require("./log");
|
|
11
34
|
const exec = (0, node_util_1.promisify)(node_child_process_1.exec);
|
package/lib/version-indexes.js
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.appendToIndex = void 0;
|
|
4
30
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
5
|
-
const fs = require("fs-extra");
|
|
6
|
-
const path = require("node:path");
|
|
7
|
-
const aws_1 = require("./aws");
|
|
31
|
+
const fs = __importStar(require("fs-extra"));
|
|
32
|
+
const path = __importStar(require("node:path"));
|
|
33
|
+
const aws_1 = __importDefault(require("./aws"));
|
|
8
34
|
const log_1 = require("./log");
|
|
9
35
|
const debug = log_1.debug.new('version-indexes');
|
|
10
36
|
const sortVersionsObjectByKeysDesc = (input, keyLimit) => {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oclif",
|
|
3
3
|
"description": "oclif: create your own CLI",
|
|
4
|
-
"version": "4.4.
|
|
4
|
+
"version": "4.4.20",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"oclif": "bin/run.js"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@aws-sdk/client-cloudfront": "^3.511.0",
|
|
12
12
|
"@aws-sdk/client-s3": "^3.515.0",
|
|
13
13
|
"@oclif/core": "^3.19.2",
|
|
14
|
-
"@oclif/plugin-help": "^6.0.
|
|
14
|
+
"@oclif/plugin-help": "^6.0.14",
|
|
15
15
|
"@oclif/plugin-not-found": "^3.0.10",
|
|
16
16
|
"@oclif/plugin-warn-if-update-available": "^3.0.12",
|
|
17
17
|
"async-retry": "^1.3.3",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"lodash.template": "^4.5.0",
|
|
25
25
|
"normalize-package-data": "^3.0.3",
|
|
26
26
|
"semver": "^7.6.0",
|
|
27
|
+
"sort-package-json": "^2.8.0",
|
|
27
28
|
"yeoman-environment": "^3.15.1",
|
|
28
29
|
"yeoman-generator": "^5.8.0"
|
|
29
30
|
},
|
|
@@ -47,16 +48,16 @@
|
|
|
47
48
|
"commitlint": "^17.7.2",
|
|
48
49
|
"conventional-changelog-cli": "^2.2.2",
|
|
49
50
|
"eslint": "^8.57.0",
|
|
50
|
-
"eslint-config-oclif": "^5.0.
|
|
51
|
-
"eslint-config-oclif-typescript": "^3.0.
|
|
51
|
+
"eslint-config-oclif": "^5.0.2",
|
|
52
|
+
"eslint-config-oclif-typescript": "^3.0.48",
|
|
52
53
|
"eslint-config-prettier": "^9.0.0",
|
|
53
|
-
"fancy-test": "^3.0.11",
|
|
54
54
|
"eslint-plugin-perfectionist": "^2.1.0",
|
|
55
|
+
"fancy-test": "^3.0.11",
|
|
55
56
|
"globby": "^11.1.0",
|
|
56
57
|
"husky": "^8.0.3",
|
|
57
58
|
"lint-staged": "^14.0.1",
|
|
58
59
|
"lodash.clonedeep": "^4.5.0",
|
|
59
|
-
"mocha": "^10.
|
|
60
|
+
"mocha": "^10.3.0",
|
|
60
61
|
"nyc": "^15.1.0",
|
|
61
62
|
"prettier": "^3.2.5",
|
|
62
63
|
"shelljs": "^0.8.5",
|