fix(cli): prepublish alias
This commit is contained in:
parent
d8e548253d
commit
2a823996e5
2 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ function generateCommandDef(command: CommandSchema) {
|
||||||
|
|
||||||
if (command.alias) {
|
if (command.alias) {
|
||||||
command.alias.unshift(commandPath)
|
command.alias.unshift(commandPath)
|
||||||
paths = `[['${command.alias.join(', ')}']]`
|
paths = `[${command.alias.map((alias) => `['${alias}']`).join(', ')}]`
|
||||||
}
|
}
|
||||||
|
|
||||||
cmdLines.push(`
|
cmdLines.push(`
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import { Command, Option } from 'clipanion'
|
import { Command, Option } from 'clipanion'
|
||||||
|
|
||||||
export abstract class BasePrePublishCommand extends Command {
|
export abstract class BasePrePublishCommand extends Command {
|
||||||
static paths = [['pre-publish, prepublish']]
|
static paths = [['pre-publish'], ['prepublish']]
|
||||||
|
|
||||||
static usage = Command.Usage({
|
static usage = Command.Usage({
|
||||||
description:
|
description:
|
||||||
|
|
Loading…
Reference in a new issue