Skip to content

Commit

Permalink
fix(cli.ts): fix the order of choices in the "template" option to mat…
Browse files Browse the repository at this point in the history
…ch the order in the form

fix(form.ts): fix the order of choices in the "choices" array to match the order in the CLI
  • Loading branch information
Daniel-Boll committed Nov 3, 2023
1 parent f27aee8 commit 52d783f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/new/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const createProject = (): CommandModule<CommandModuleArgs, any> => {
.option("template", {
describe: "The project template to use",
type: "string",
choices: ["non-opinionated", "opinionated"],
choices: ["opinionated", "non-opinionated"],
alias: "t",
})
.option("package-manager", {
Expand Down
2 changes: 1 addition & 1 deletion src/new/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ const projectForm = async (projectName: string, args: any[]): Promise<void> => {
name: "template",
message: "Select a template",
choices: [
"Non-Opinionated :: A simple ExpressoTS project.",
"Opinionated :: A complete ExpressoTS project with an opinionated structure and features.",
"Non-Opinionated :: A simple ExpressoTS project.",
],
},
{
Expand Down

0 comments on commit 52d783f

Please sign in to comment.