Skip to content

Commit

Permalink
feat: prioritize the use of pnpm (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon authored Jul 6, 2024
1 parent e45840e commit ca9e07c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/console/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ async function initConsole(this: Context, args: InitArgs) {
log.info('Install dependencies');

let npmCommand = 'npm';
if (commandExistsSync('yarn')) {
npmCommand = 'yarn';
} else if (commandExistsSync('pnpm')) {
if (commandExistsSync('pnpm')) {
npmCommand = 'pnpm';
} else if (commandExistsSync('yarn')) {
npmCommand = 'yarn';
}

try {
Expand Down

0 comments on commit ca9e07c

Please sign in to comment.