Skip to content

Commit

Permalink
Merge pull request #1362 from ryoppippi/feature/fix-cli
Browse files Browse the repository at this point in the history
fix(cli): type error
  • Loading branch information
samchon authored Nov 21, 2024
2 parents 954eaf1 + 7f80dcc commit 8470ee6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/executable/TypiaSetupWizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> => {
Expand Down

0 comments on commit 8470ee6

Please sign in to comment.