diff --git a/packages/cli/lib/commands/ai-config.ts b/packages/cli/lib/commands/ai-config.ts index 893845b41..0b94ed4ab 100644 --- a/packages/cli/lib/commands/ai-config.ts +++ b/packages/cli/lib/commands/ai-config.ts @@ -136,13 +136,13 @@ function getTemplateManager(): BaseTemplateManager { return App.container.get(TEMPLATE_MANAGER); } -/** Separate from the PromptSession prompt due to step by step config */ +/** Separate from the PromptSession prompt due to step by step config w/ jQuery and w/o Blazor */ async function promptForFrameworkId(): Promise { const tm = getTemplateManager(); const frameRes: string = await InquirerWrapper.select({ name: "framework", message: "Choose framework:", - choices: tm.getFrameworkNames(true), + choices: tm.getFrameworkNames(true).filter(x => x !== "jQuery"), default: "Angular" }); return tm.getFrameworkByName(frameRes).id; @@ -166,7 +166,7 @@ const command: CommandModule = { .option("framework", { alias: "f", describe: "Manually set project framework to configure AI for.", - choices: getTemplateManager()?.getFrameworkIds(true), + choices: getTemplateManager()?.getFrameworkIds(true).filter(x => x !== "jquery"), type: "string" }), async handler(argv: ArgumentsCamelCase) { diff --git a/spec/acceptance/help-spec.ts b/spec/acceptance/help-spec.ts index c0a546294..296228d66 100644 --- a/spec/acceptance/help-spec.ts +++ b/spec/acceptance/help-spec.ts @@ -264,7 +264,7 @@ describe("Help command", () => { --assistants Coding assistant(s) to configure MCP servers for [array] [choices: "generic", "vscode", "cursor", "gemini", "junie", "none"] -f, --framework Manually set project framework to configure AI for. [string] - [choices: "angular", "blazor", "jquery", "react", "webcomponents"]`; + [choices: "angular", "blazor", "react", "webcomponents"]`; const replacedHelpText: string = originalHelpText.replace(/\s/g, ""); const actualNewText: string = (child.stdout.toString()).replace(/\s/g, "");