@forge/cli

11.1.011.2.0-next.17-experimental-26b1489
out/command-line/register-app-commands.js
out/command-line/register-app-commands.js
+6−9
Index: package/out/command-line/register-app-commands.js
===================================================================
--- package/out/command-line/register-app-commands.js
+++ package/out/command-line/register-app-commands.js
@@ -122,10 +122,11 @@
 async function promptAndSelectTemplate(ui, createAppCommand, template, directory) {
     if (!template) {
         ui.info(cli_shared_1.Text.create.overviewTemplates);
         const templates = await ui.displayTemporaryMessage(() => createAppCommand.getAvailableTemplates(), cli_shared_1.Text.create.waitTemplates);
+        const templatesWithoutCsuik = templates.filter((template) => !template.includes('csuik'));
         const type = await ui.promptForList(cli_shared_1.Text.create.promptCategory, Object.values(TemplateCategory));
-        const filteredTemplates = filterTemplatesByCategory(templates, type);
+        const filteredTemplates = filterTemplatesByCategory(templatesWithoutCsuik, type);
         template = await selectedTemplate(filteredTemplates, type, ui);
         template = modifyTemplateByCategory(template, type);
         if (!directory) {
             directory = template;
@@ -140,29 +141,25 @@
         : templates
             .filter((name) => {
             switch (category) {
                 case TemplateCategory.BACKEND:
-                    return (!name.includes('ui-kit') &&
-                        !name.includes('csuik') &&
-                        !name.includes('custom-ui') &&
-                        !name.includes('rovo') &&
-                        name !== 'blank');
+                    return (!name.includes('ui-kit') && !name.includes('custom-ui') && !name.includes('rovo') && name !== 'blank');
                 case TemplateCategory.CUSTOM_UI:
                     return name.includes('custom-ui');
                 case TemplateCategory.UI_KIT_2:
-                    return name.includes('csuik');
+                    return name.includes('ui-kit');
                 case TemplateCategory.ROVO:
                     return name.includes('rovo');
                 default:
                     return true;
             }
         })
-            .map((name) => name.replace('-ui-kit', '').replace('-custom-ui', '').replace('-csuik', '').replace('-rovo', ''));
+            .map((name) => name.replace('-ui-kit', '').replace('-custom-ui', '').replace('-rovo', ''));
 }
 function modifyTemplateByCategory(template, category) {
     switch (category) {
         case TemplateCategory.UI_KIT_2:
-            return `${template}-csuik`;
+            return `${template}-ui-kit`;
         case TemplateCategory.CUSTOM_UI:
             return `${template}-custom-ui`;
         case TemplateCategory.ROVO:
             return `${template}-rovo`;