From 349804453de96672232f8eccba311dac678c6c66 Mon Sep 17 00:00:00 2001 From: Romain Lenzotti Date: Wed, 13 Mar 2024 07:56:20 +0100 Subject: [PATCH] fix(cli-plugin-vitest): fix vitest.config.mts.hbs template path Closes: #373 --- packages/cli-plugin-vitest/src/hooks/VitestInitHook.ts | 2 +- packages/cli/src/commands/init/config/FeaturesPrompt.ts | 2 +- .../cli/src/commands/init/prompts/getFeaturesPrompt.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cli-plugin-vitest/src/hooks/VitestInitHook.ts b/packages/cli-plugin-vitest/src/hooks/VitestInitHook.ts index 572262bce..bb5851b6a 100644 --- a/packages/cli-plugin-vitest/src/hooks/VitestInitHook.ts +++ b/packages/cli-plugin-vitest/src/hooks/VitestInitHook.ts @@ -29,7 +29,7 @@ export class VitestInitHook { { title: "Generate files for vitest", task: (ctx: any) => { - return this.rootRenderer.renderAll(["vitest.config.ts.hbs"], ctx, { + return this.rootRenderer.renderAll(["vitest.config.mts.hbs"], ctx, { templateDir: `${TEMPLATE_DIR}/init` }); } diff --git a/packages/cli/src/commands/init/config/FeaturesPrompt.ts b/packages/cli/src/commands/init/config/FeaturesPrompt.ts index a42c11a89..922d26c23 100644 --- a/packages/cli/src/commands/init/config/FeaturesPrompt.ts +++ b/packages/cli/src/commands/init/config/FeaturesPrompt.ts @@ -298,7 +298,7 @@ export const FeaturesMap: Record = { export const FeaturesPrompt = (availableRuntimes: string[], availablePackageManagers: string[]) => [ { - message: "Choose the target platform:", + message: "Choose the target Framework:", type: "list", name: "platform", choices: [PlatformType.EXPRESS, PlatformType.KOA] diff --git a/packages/cli/src/commands/init/prompts/getFeaturesPrompt.spec.ts b/packages/cli/src/commands/init/prompts/getFeaturesPrompt.spec.ts index a2daca8d6..038abbdd2 100644 --- a/packages/cli/src/commands/init/prompts/getFeaturesPrompt.spec.ts +++ b/packages/cli/src/commands/init/prompts/getFeaturesPrompt.spec.ts @@ -20,7 +20,7 @@ describe("getFeaturesPrompt", () => { "value": "koa", }, ], - "message": "Choose the target platform:", + "message": "Choose the target Framework:", "name": "platform", "type": "list", },