Skip to content

Commit

Permalink
feat(create-robo): activity alias for app
Browse files Browse the repository at this point in the history
  • Loading branch information
Pkmmte committed Apr 24, 2024
1 parent 7450631 commit 8da6b26
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/itchy-impalas-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-robo': patch
---

feat: `activity` alias for `app`
7 changes: 6 additions & 1 deletion packages/create-robo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface CommandOptions {
features?: string
install?: boolean
javascript?: boolean
kit?: 'app' | 'bot'
kit?: 'activity' | 'app' | 'bot'
plugin?: boolean
plugins?: string[]
template?: string
Expand Down Expand Up @@ -49,6 +49,11 @@ new Command('create-robo <projectName>')
logger.debug(`create-robo version:`, packageJson.version)
logger.debug(`Current working directory:`, process.cwd())

// `activity` is an alias for `app`
if (options.kit === 'activity') {
options.kit = 'app'
}

// Ensure correct kit is selected (bot or app)
if (options.kit && !['bot', 'app'].includes(options.kit)) {
logger.error('Only bot (default) and app kits are available at the moment.')
Expand Down

0 comments on commit 8da6b26

Please sign in to comment.