Skip to content

Commit

Permalink
fix(typegen): add placeholder group to allow typegen to show in help
Browse files Browse the repository at this point in the history
  • Loading branch information
sgulseth committed Mar 26, 2024
1 parent 78caa54 commit 2ace4a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@sanity/cli/src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import enableTelemetryCommand from './telemetry/enableTelemetryCommand'
import telemetryGroup from './telemetry/telemetryGroup'
import telemetryStatusCommand from './telemetry/telemetryStatusCommand'
import generateTypegenCommand from './typegen/generateTypesCommand'
import typegenGroup from './typegen/typegenGroup'
import upgradeCommand from './upgrade/upgradeCommand'
import versionsCommand from './versions/versionsCommand'

Expand All @@ -37,4 +38,5 @@ export const baseCommands: (CliCommandDefinition | CliCommandGroupDefinition)[]
enableTelemetryCommand,
telemetryStatusCommand,
generateTypegenCommand,
typegenGroup,
]
10 changes: 10 additions & 0 deletions packages/@sanity/cli/src/commands/typegen/typegenGroup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import {type CliCommandGroupDefinition} from '../../types'

const typegenGroup: CliCommandGroupDefinition = {
name: 'typegen',
signature: '[COMMAND]',
isGroupRoot: true,
description: 'Sanity TypeGen (Beta)',
}

export default typegenGroup

0 comments on commit 2ace4a5

Please sign in to comment.