Skip to content

Commit

Permalink
feat(cli): bump @antfu/ni package
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Feb 9, 2025
1 parent 568d5ee commit 209e661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"test": "bun vitest"
},
"dependencies": {
"@antfu/ni": "^0.22.0",
"@antfu/ni": "^23.3.1",
"@babel/core": "^7.24.9",
"@babel/parser": "^7.24.8",
"@babel/plugin-transform-typescript": "^7.24.8",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/utils/get-package-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { detect } from "@antfu/ni";

export async function getPackageManager(
targetDir: string,
): Promise<"yarn" | "pnpm" | "bun" | "npm"> {
): Promise<"yarn" | "pnpm" | "bun" | "npm" | "deno"> {
const packageManager = await detect({ programmatic: true, cwd: targetDir });

if (packageManager === "yarn@berry") return "yarn";
if (packageManager === "pnpm@6") return "pnpm";
if (packageManager === "bun") return "bun";

if (packageManager === "deno") return "deno";
return packageManager ?? "npm";
}

0 comments on commit 209e661

Please sign in to comment.