Skip to content

Commit 1758164

Browse files
committed
fix(create-tbk-app): correct summary rendering and improve code formatting
- Restored the 'Project configuration' label in the summary output for clarity. - Reformatted the agent options for better readability in the code.
1 parent 821c468 commit 1758164

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

packages/create-tbk-app/src/prompts.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ export async function collectProjectConfig(
114114

115115
export function renderSummary(config: ProjectConfig) {
116116
note(
117-
'Project configuration',
118117
[
119118
`Name: ${config.projectName}`,
120119
`Preset: ${config.preset}`,
@@ -133,6 +132,7 @@ export function renderSummary(config: ProjectConfig) {
133132
`Initialize git repo: ${config.skipGit ? 'no' : 'yes'}`,
134133
`Install dependencies: ${config.skipInstall ? 'later' : 'now'}`,
135134
].join('\n'),
135+
'Project configuration',
136136
);
137137
}
138138

@@ -280,13 +280,23 @@ async function collectBasicOptions(defaults: PromptDefaults) {
280280
} satisfies Pick<ProjectConfig, 'packageManager' | 'skipGit' | 'skipInstall'>;
281281
}
282282

283-
async function collectAgentOptions(defaults: PromptDefaults): Promise<AgentId[]> {
283+
async function collectAgentOptions(
284+
defaults: PromptDefaults,
285+
): Promise<AgentId[]> {
284286
const result = await promptMultiSelectValue<AgentId>({
285287
message: 'Which AI agents/IDEs do you use?',
286288
options: [
287-
{ label: 'Claude Code', value: 'claude', hint: 'Includes .claude commands' },
289+
{
290+
label: 'Claude Code',
291+
value: 'claude',
292+
hint: 'Includes .claude commands',
293+
},
288294
{ label: 'Cursor', value: 'cursor', hint: 'Includes Cursor rules' },
289-
{ label: 'Other editor/agent', value: 'other', hint: 'Adds AGENTS.md guide' },
295+
{
296+
label: 'Other editor/agent',
297+
value: 'other',
298+
hint: 'Adds AGENTS.md guide',
299+
},
290300
],
291301
initialValue: defaults.agents ?? [],
292302
});

0 commit comments

Comments
 (0)