oclif 3.8.0 → 3.8.2
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/.oclif.manifest.json +1 -1
- package/lib/commands/promote.js +10 -1
- package/package.json +4 -9
package/.oclif.manifest.json
CHANGED
package/lib/commands/promote.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const path = require("path");
|
|
4
4
|
const _ = require("lodash");
|
|
5
5
|
const core_1 = require("@oclif/core");
|
|
6
|
+
const semver_1 = require("semver");
|
|
6
7
|
const aws_1 = require("../aws");
|
|
7
8
|
const Tarballs = require("../tarballs");
|
|
8
9
|
const upload_util_1 = require("../upload-util");
|
|
@@ -99,7 +100,6 @@ class Promote extends core_1.Command {
|
|
|
99
100
|
// copy debian artifacts
|
|
100
101
|
const debArtifacts = [
|
|
101
102
|
(0, upload_util_1.templateShortKey)('deb', { bin: config.bin, versionShaRevision: (0, upload_util_1.debVersion)(buildConfig), arch: 'amd64' }),
|
|
102
|
-
(0, upload_util_1.templateShortKey)('deb', { bin: config.bin, versionShaRevision: (0, upload_util_1.debVersion)(buildConfig), arch: 'i386' }),
|
|
103
103
|
'Packages.gz',
|
|
104
104
|
'Packages.xz',
|
|
105
105
|
'Packages.bz2',
|
|
@@ -107,6 +107,15 @@ class Promote extends core_1.Command {
|
|
|
107
107
|
'InRelease',
|
|
108
108
|
'Release.gpg',
|
|
109
109
|
];
|
|
110
|
+
// start
|
|
111
|
+
// TODO: remove in next major release
|
|
112
|
+
// node dropped 32-bit support for linux a long time ago, see:
|
|
113
|
+
// https://github.com/oclif/oclif/issues/770#issuecomment-1508719530
|
|
114
|
+
const arches = buildConfig.targets.filter(t => t.platform === 'linux');
|
|
115
|
+
if (arches.find(a => a.arch.includes('x86')) && (0, semver_1.lte)(buildConfig.nodeVersion, '9.11.2')) {
|
|
116
|
+
debArtifacts.push((0, upload_util_1.templateShortKey)('deb', { bin: config.bin, versionShaRevision: (0, upload_util_1.debVersion)(buildConfig), arch: 'i386' }));
|
|
117
|
+
}
|
|
118
|
+
// end
|
|
110
119
|
this.log(`Promoting debian artifacts to ${flags.channel}`);
|
|
111
120
|
await Promise.all(debArtifacts.flatMap(artifact => {
|
|
112
121
|
const debCopySource = cloudBucketCommitKey(`apt/${artifact}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oclif",
|
|
3
3
|
"description": "oclif: create your own CLI",
|
|
4
|
-
"version": "3.8.
|
|
4
|
+
"version": "3.8.2",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"oclif": "bin/run",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"semver": "^7.3.8",
|
|
26
26
|
"shelljs": "^0.8.5",
|
|
27
27
|
"tslib": "^2.3.1",
|
|
28
|
-
"yeoman-environment": "^3.
|
|
29
|
-
"yeoman-generator": "^5.
|
|
28
|
+
"yeoman-environment": "^3.15.1",
|
|
29
|
+
"yeoman-generator": "^5.8.0",
|
|
30
30
|
"yosay": "^2.0.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -34,25 +34,20 @@
|
|
|
34
34
|
"@oclif/test": "^2.3.0",
|
|
35
35
|
"@types/chai": "^4.3.4",
|
|
36
36
|
"@types/cli-progress": "^3.11.0",
|
|
37
|
-
"@types/execa": "^0.9.0",
|
|
38
37
|
"@types/fs-extra": "^9.0",
|
|
39
38
|
"@types/lodash": "^4.14.191",
|
|
40
39
|
"@types/lodash.template": "^4.5.0",
|
|
41
40
|
"@types/mocha": "^8.2.3",
|
|
42
41
|
"@types/node": "^14.18.34",
|
|
43
|
-
"@types/read-pkg": "^5.1.0",
|
|
44
42
|
"@types/semver": "^7.3.13",
|
|
45
43
|
"@types/shelljs": "^0.8.11",
|
|
46
|
-
"@types/
|
|
47
|
-
"@types/write-json-file": "^3.2.1",
|
|
48
|
-
"@types/yeoman-generator": "^5.2.10",
|
|
44
|
+
"@types/yeoman-generator": "^5.2.11",
|
|
49
45
|
"@types/yosay": "^2.0.1",
|
|
50
46
|
"chai": "^4.3.7",
|
|
51
47
|
"conventional-changelog-cli": "^2.2.2",
|
|
52
48
|
"eslint": "^7.32.0",
|
|
53
49
|
"eslint-config-oclif": "^4.0.0",
|
|
54
50
|
"eslint-config-oclif-typescript": "^1.0.2",
|
|
55
|
-
"execa": "^0.11.0",
|
|
56
51
|
"fancy-test": "^1.4.10",
|
|
57
52
|
"globby": "^11.1.0",
|
|
58
53
|
"mocha": "^9.2.2",
|