Skip to content

Commit

Permalink
fix(test): check if kitPnpmPath exists
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Oct 11, 2024
1 parent f7140cd commit 99f1c31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cli/lib/install.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { kitPnpmPath } from "../../core/resolvers.js"

import { isBin } from "../../core/is.js"
export async function createPackageManagerCommand(
command: "i" | "un",
packageNames: string[]
Expand All @@ -23,7 +23,9 @@ export async function createPackageManagerCommand(
}

if (!isYarn) {
packageManager = kitPnpmPath(packageManager)
if (await isBin(kitPnpmPath(packageManager))) {
packageManager = kitPnpmPath(packageManager)
}
}

// Combine package manager and command
Expand Down

0 comments on commit 99f1c31

Please sign in to comment.