Skip to content

Commit

Permalink
Merge pull request #11213 from ZYUN-MSFT/user/zyun/fixOptions
Browse files Browse the repository at this point in the history
fix: create project static options
  • Loading branch information
MSFT-yiz authored Mar 28, 2024
2 parents 338c099 + f0239d9 commit ce5c2b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/fx-core/src/question/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,9 @@ function projectTypeQuestion(): SingleSelectQuestion {
ProjectTypeOptions.bot(Platform.CLI),
ProjectTypeOptions.tab(Platform.CLI),
ProjectTypeOptions.me(Platform.CLI),
isOfficeXMLAddinEnabled()
? ProjectTypeOptions.officeXMLAddin(Platform.CLI)
: ProjectTypeOptions.outlookAddin(Platform.CLI),
ProjectTypeOptions.officeXMLAddin(Platform.CLI),
ProjectTypeOptions.officeAddin(Platform.CLI),
ProjectTypeOptions.outlookAddin(Platform.CLI),
];
return {
name: QuestionNames.ProjectType,
Expand Down
3 changes: 2 additions & 1 deletion packages/fx-core/src/question/inputs/CreateProjectInputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export interface CreateProjectInputs extends Inputs {
| "tab-type"
| "me-type"
| "office-xml-addin-type"
| "office-addin-type";
| "office-addin-type"
| "outlook-addin-type";
/** @description Select to Create an Outlook, Word, Excel, or PowerPoint Add-in */
"addin-host"?: "outlook" | "word" | "excel" | "powerpoint";
/** @description Capabilities */
Expand Down

0 comments on commit ce5c2b3

Please sign in to comment.