fix: update error messages
MODIFY
src/commands/upload/deb.ts
src/commands/upload/deb.ts
@@ -24,7 +24,7 @@ export default class UploadDeb extends Command {
}
if (!await qq.exists(dist('Release'))) this.error('Cannot find debian artifacts', {
- suggestions: ['Run "oclif-dev pack:deb" before uploading'],
+ suggestions: ['Run "oclif pack deb" before uploading'],
})
const cloudKeyBase = commitAWSDir(config.pjson.version, buildConfig.gitSha, s3Config)

MODIFY
src/commands/upload/macos.ts
src/commands/upload/macos.ts
@@ -28,7 +28,7 @@ export default class UploadMacos extends Command {
if (await qq.exists(localPkg)) await aws.s3.uploadFile(localPkg, {...S3Options, CacheControl: 'max-age=86400', Key: cloudKey})
else this.error('Cannot find macOS pkg', {
- suggestions: ['Run "oclif-dev pack:macos" before uploading'],
+ suggestions: ['Run "oclif pack macos" before uploading'],
})
log(`done uploading macos pkg for v${config.version}-${buildConfig.gitSha}`)

MODIFY
src/commands/upload/win.ts
src/commands/upload/win.ts
@@ -23,12 +23,13 @@ export default class UploadWin extends Command {
}
const archs = buildConfig.targets.filter(t => t.platform === 'win32').map(t => t.arch)
+
for (const arch of archs) {
const templateKey = templateShortKey('win32', {bin: config.bin, version: config.version, sha: buildConfig.gitSha, arch})
const localKey = dist(`win32/${templateKey}`)
// eslint-disable-next-line no-await-in-loop
if (!await qq.exists(localKey)) this.error(`Cannot find Windows exe for ${arch}`, {
- suggestions: ['Run "oclif-dev pack:win" before uploading'],
+ suggestions: ['Run "oclif pack win" before uploading'],
})
}

fix: update error messages (#806)