diff --git a/cli/codegen/index.ts b/cli/codegen/index.ts index eca5d203..042d0461 100644 --- a/cli/codegen/index.ts +++ b/cli/codegen/index.ts @@ -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(` diff --git a/cli/src/def/pre-publish.ts b/cli/src/def/pre-publish.ts index 5bc2326b..51747513 100644 --- a/cli/src/def/pre-publish.ts +++ b/cli/src/def/pre-publish.ts @@ -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: