From 7f80dcc2d7927e7387735f22bc69290149c4a0f8 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Sat, 16 Nov 2024 19:55:21 +0000 Subject: [PATCH] fix(cli): type error --- src/executable/TypiaSetupWizard.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/executable/TypiaSetupWizard.ts b/src/executable/TypiaSetupWizard.ts index a3e77adebd..0258d16239 100644 --- a/src/executable/TypiaSetupWizard.ts +++ b/src/executable/TypiaSetupWizard.ts @@ -158,8 +158,13 @@ export namespace TypiaSetupWizard { "npm" | "pnpm" | "yarn" | "bun" | null > => { const result: DetectResult | null = await detect({ cwd: process.cwd() }); - if (result?.name === "npm") return null; // NPM case is still selectable - return result?.name ?? null; + switch (result?.name) { + case 'npm': + case 'deno': + return null; // NPM case is still selectable & Deno is not supported + default: + return result?.name ?? null; + } }; const getTypeScriptVersion = async (): Promise => {