oclif 3.9.2-dev.0 → 3.10.0
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
CHANGED
package/lib/commands/promote.js
CHANGED
|
@@ -97,9 +97,12 @@ class Promote extends core_1.Command {
|
|
|
97
97
|
}));
|
|
98
98
|
};
|
|
99
99
|
const promoteDebianAptPackages = async () => {
|
|
100
|
+
const arches = buildConfig.targets.filter(t => t.platform === 'linux');
|
|
100
101
|
// copy debian artifacts
|
|
101
102
|
const debArtifacts = [
|
|
102
|
-
|
|
103
|
+
...arches
|
|
104
|
+
.filter(a => !a.arch.includes('x86')) // See todo below
|
|
105
|
+
.map(a => (0, upload_util_1.templateShortKey)('deb', { bin: config.bin, versionShaRevision: (0, upload_util_1.debVersion)(buildConfig), arch: (0, upload_util_1.debArch)(a.arch) })),
|
|
103
106
|
'Packages.gz',
|
|
104
107
|
'Packages.xz',
|
|
105
108
|
'Packages.bz2',
|
|
@@ -111,7 +114,6 @@ class Promote extends core_1.Command {
|
|
|
111
114
|
// TODO: remove in next major release
|
|
112
115
|
// node dropped 32-bit support for linux a long time ago, see:
|
|
113
116
|
// https://github.com/oclif/oclif/issues/770#issuecomment-1508719530
|
|
114
|
-
const arches = buildConfig.targets.filter(t => t.platform === 'linux');
|
|
115
117
|
if (arches.find(a => a.arch.includes('x86')) && (0, semver_1.lte)(buildConfig.nodeVersion, '9.11.2')) {
|
|
116
118
|
debArtifacts.push((0, upload_util_1.templateShortKey)('deb', { bin: config.bin, versionShaRevision: (0, upload_util_1.debVersion)(buildConfig), arch: 'i386' }));
|
|
117
119
|
}
|
|
@@ -40,9 +40,9 @@ class UploadDeb extends core_1.Command {
|
|
|
40
40
|
await Promise.all([upload(deb), uploadWorkaround(deb)]);
|
|
41
41
|
};
|
|
42
42
|
(0, log_1.log)(`starting upload of deb artifacts for v${config.version}-${buildConfig.gitSha}`);
|
|
43
|
+
const arches = buildConfig.targets.filter(t => t.platform === 'linux');
|
|
43
44
|
await Promise.all([
|
|
44
|
-
uploadDeb(
|
|
45
|
-
uploadDeb('i386'),
|
|
45
|
+
...arches.map(a => uploadDeb((0, upload_util_1.debArch)(a.arch))),
|
|
46
46
|
upload('Packages.gz'),
|
|
47
47
|
upload('Packages.xz'),
|
|
48
48
|
upload('Packages.bz2'),
|
package/lib/tarballs/config.js
CHANGED
package/lib/upload-util.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ import { BuildConfig as TarballConfig } from './tarballs/config';
|
|
|
3
3
|
export declare function commitAWSDir(version: string, sha: string, s3Config: TarballConfig['s3Config']): string;
|
|
4
4
|
export declare function channelAWSDir(channel: string, s3Config: TarballConfig['s3Config']): string;
|
|
5
5
|
export declare function templateShortKey(type: keyof Interfaces.PJSON.S3.Templates | 'macos' | 'win32' | 'deb', ext?: '.tar.gz' | '.tar.xz' | Interfaces.Config.s3Key.Options, options?: Interfaces.Config.s3Key.Options): string;
|
|
6
|
-
export declare
|
|
6
|
+
export declare type DebArch = 'amd64' | 'i386' | 'armel' | 'arm64';
|
|
7
|
+
export declare function debArch(arch: Interfaces.ArchTypes): DebArch;
|
|
7
8
|
export declare function debVersion(buildConfig: TarballConfig): string;
|
package/lib/upload-util.js
CHANGED