From 52d783f9640cc9ef4ec18dc769297c34e040d9d5 Mon Sep 17 00:00:00 2001 From: Daniel Boll Date: Fri, 3 Nov 2023 20:56:07 -0300 Subject: [PATCH] fix(cli.ts): fix the order of choices in the "template" option to match the order in the form fix(form.ts): fix the order of choices in the "choices" array to match the order in the CLI --- src/new/cli.ts | 2 +- src/new/form.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/new/cli.ts b/src/new/cli.ts index 1bf5702..1f6a87c 100644 --- a/src/new/cli.ts +++ b/src/new/cli.ts @@ -23,7 +23,7 @@ const createProject = (): CommandModule => { .option("template", { describe: "The project template to use", type: "string", - choices: ["non-opinionated", "opinionated"], + choices: ["opinionated", "non-opinionated"], alias: "t", }) .option("package-manager", { diff --git a/src/new/form.ts b/src/new/form.ts index 430766b..e6e3344 100644 --- a/src/new/form.ts +++ b/src/new/form.ts @@ -145,8 +145,8 @@ const projectForm = async (projectName: string, args: any[]): Promise => { 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.", ], }, {