Skip to content

Commit

Permalink
fix: remove required for platform (#337)
Browse files Browse the repository at this point in the history
* fix: remove deb as a platform and remove required for platform

@W-10008913@

* fix: remove deb as a platform and remove required for platform

@W-10008913@

* fix: remove deb as a platform and remove required for platform

@W-10008913@

* chore: leave deb in platform
  • Loading branch information
peternhale authored Oct 26, 2021
1 parent 44d9fd2 commit f3fd3e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/channel/promote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import * as os from 'os';
import { flags, FlagsConfig, SfdxCommand } from '@salesforce/command';
import { Messages, SfdxError } from '@salesforce/core';
import { AnyJson, ensureArray, ensureNumber, ensureString } from '@salesforce/ts-types';
import { AnyJson, ensureArray, ensureNumber, ensureString, asArray } from '@salesforce/ts-types';
import { ShellString } from 'shelljs';
import { bold } from 'chalk';
import { isMonoRepo } from '../../repository';
Expand Down Expand Up @@ -45,8 +45,8 @@ export default class Promote extends SfdxCommand {
platform: flags.array({
char: 'p',
description: messages.getMessage('platform'),
required: true,
options: ['win', 'macos', 'deb'],
default: [],
multiple: true,
}),
cli: flags.enum({
Expand Down Expand Up @@ -115,7 +115,7 @@ export default class Promote extends SfdxCommand {
const targets = this.flags.targets ? (['--targets', ...ensureArray(this.flags.targets)] as string[]) : [];
const { sha, version } = await this.determineShaAndVersion(cli);

const platforms = ensureArray(this.flags.platform).map((p: string) => `--${p}`);
const platforms = asArray(this.flags.platform, []).map((p: string) => `--${p}`);

if (!this.flags.dryrun) {
const oclifPlugin = await PluginCommand.create({
Expand Down

0 comments on commit f3fd3e8

Please sign in to comment.