fix(cli): prepublish alias

This commit is contained in:
LongYinan 2023-12-16 15:36:17 +08:00
parent d8e548253d
commit 2a823996e5
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ function generateCommandDef(command: CommandSchema) {
if (command.alias) {
command.alias.unshift(commandPath)
paths = `[['${command.alias.join(', ')}']]`
paths = `[${command.alias.map((alias) => `['${alias}']`).join(', ')}]`
}
cmdLines.push(`

View file

@ -3,7 +3,7 @@
import { Command, Option } from 'clipanion'
export abstract class BasePrePublishCommand extends Command {
static paths = [['pre-publish, prepublish']]
static paths = [['pre-publish'], ['prepublish']]
static usage = Command.Usage({
description: