From 9165df49dcc88ed97ed5a959cf680578f5b94227 Mon Sep 17 00:00:00 2001 From: Manus AI Date: Tue, 24 Mar 2026 21:45:43 -0400 Subject: [PATCH 1/2] fix(create): show helpful error for unknown vite: templates Fixes issue #1128 where 'vp create vite:' crashes with ENOENT. Added validation for builtin template names in the create command. When an unknown 'vite:' prefixed template is provided, the CLI now displays a clear error message listing the valid builtin templates instead of crashing with an ENOENT error. Valid builtin templates are: - vite:monorepo - vite:application - vite:library - vite:generator --- packages/cli/src/create/bin.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/cli/src/create/bin.ts b/packages/cli/src/create/bin.ts index 63b0f2ce4d..85270340b0 100644 --- a/packages/cli/src/create/bin.ts +++ b/packages/cli/src/create/bin.ts @@ -447,6 +447,19 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h selectedTemplateName = template; } + // Validate builtin template names + if (selectedTemplateName.startsWith('vite:')) { + const validBuiltins = Object.values(BuiltinTemplate); + if (!validBuiltins.includes(selectedTemplateName as BuiltinTemplate)) { + const validNames = validBuiltins.join(', '); + prompts.log.error( + `Unknown builtin template "${selectedTemplateName}". Valid builtin templates are: ${validNames}`, + ); + prompts.log.info(`Run \`${accent('vp create --list')}\` to see all available templates.`); + cancelAndExit('', 1); + } + } + const isBuiltinTemplate = selectedTemplateName.startsWith('vite:'); // Remote templates (e.g., @tanstack/create-start, custom templates) run their own From e2e89ef79d40a801527a2223c45eee5e40509347 Mon Sep 17 00:00:00 2001 From: Manus AI Date: Tue, 24 Mar 2026 22:32:58 -0400 Subject: [PATCH 2/2] fix(cli): add ./fmt subpath export (#850) --- packages/cli/package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/cli/package.json b/packages/cli/package.json index d6c6e7f229..7d60974aab 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -70,6 +70,10 @@ "types": "./dist/lint.d.ts", "import": "./dist/lint.js" }, + "./fmt": { + "types": "./dist/fmt.d.ts", + "import": "./dist/fmt.js" + }, "./package.json": "./package.json", "./pack": { "types": "./dist/pack.d.ts",