Skip to content

Commit

Permalink
fix(install): use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Sep 15, 2024
1 parent 06cc10d commit 22632a4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/cli/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@ let install = async (packageNames:string[]) => {
let [tool, toolArgs] = (
isYarn
? `yarn${global.isWin ? `.cmd` : ``} add`
: `npm${global.isWin ? `.cmd` : ``} i`
: `pnpm${global.isWin ? `.cmd` : ``} i`
).split(" ")

let toolPath = global.isWin ? (isYarn ? "yarn" : "pnpm") : tool

let toolExists = await isBin(toolPath)
if (!toolExists) {
toolPath = "pnpm"
}

let packages = packageNames.join(" ")
let command = `${toolPath} ${toolArgs} -D ${packages}`.trim()

Expand Down

0 comments on commit 22632a4

Please sign in to comment.