Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions packages/cli/src/create/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ function showCreateSummary(options: {

async function main() {
const { templateName, options, templateArgs } = parseArgs();
const compactOutput = !options.verbose;
let compactOutput = !options.verbose;

// #region Handle help flag
if (options.help) {
Expand Down Expand Up @@ -513,6 +513,13 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
}

const isBuiltinTemplate = selectedTemplateName.startsWith('vite:');

// Remote templates (e.g., @tanstack/create-start, custom templates) run their own
// interactive CLI, so verbose mode is needed to show their output.
if (!isBuiltinTemplate) {
compactOutput = false;
}

if (targetDir && !isBuiltinTemplate) {
cancelAndExit('The --directory option is only available for builtin templates', 1);
}
Expand Down Expand Up @@ -687,7 +694,9 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
onCancel: () => cancelAndExit(),
}));

shouldSetupHooks = await promptGitHooks(options);
if (!isMonorepo) {
shouldSetupHooks = await promptGitHooks(options);
}

const createProgress =
options.interactive && compactOutput ? prompts.spinner({ indicator: 'timer' }) : undefined;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/create/templates/monorepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function executeMonorepoTemplate(

// Ask user to init git repository before creation starts.
let initGit = true; // Default to yes
if (interactive) {
if (interactive && !options?.silent) {
const selected = await prompts.confirm({
message: `Initialize git repository:`,
initialValue: true,
Expand Down
Loading