Skip to content

Commit 4e053a6

Browse files
committed
fix(create): update --directory error to reflect broader guard
When the `--directory` guard was widened from `!isBuiltinTemplate` to `!isDirectScaffoldTemplate` (to accept bundled @org templates alongside builtins), the error text was left behind and still said "only available for builtin templates". Users hitting it today are told --directory doesn't work with bundled templates, even though it does. Now reads: "only available for builtin and bundled @org templates". Reported by Cursor Bugbot on #1398.
1 parent 4cd3c1d commit 4e053a6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/cli/src/create/bin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,10 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
516516
}
517517

518518
if (targetDir && !isDirectScaffoldTemplate) {
519-
cancelAndExit('The --directory option is only available for builtin templates', 1);
519+
cancelAndExit(
520+
'The --directory option is only available for builtin and bundled @org templates',
521+
1,
522+
);
520523
}
521524
if (selectedTemplateName === BuiltinTemplate.monorepo && isMonorepo) {
522525
prompts.log.info(

0 commit comments

Comments
 (0)