Skip to content

Commit ca9e07c

Browse files
authored
feat: prioritize the use of pnpm (#509)
1 parent e45840e commit ca9e07c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/console/init.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ async function initConsole(this: Context, args: InitArgs) {
5252
log.info('Install dependencies');
5353

5454
let npmCommand = 'npm';
55-
if (commandExistsSync('yarn')) {
56-
npmCommand = 'yarn';
57-
} else if (commandExistsSync('pnpm')) {
55+
if (commandExistsSync('pnpm')) {
5856
npmCommand = 'pnpm';
57+
} else if (commandExistsSync('yarn')) {
58+
npmCommand = 'yarn';
5959
}
6060

6161
try {

0 commit comments

Comments
 (0)