Skip to content

Commit

Permalink
🩹 fix(patch): fix bud upgrade (#2438)
Browse files Browse the repository at this point in the history
Fix an issue with `bud upgrade` when using yarn (classic).

## Type of change

**PATCH: backwards compatible change**
  • Loading branch information
kellymears authored Sep 8, 2023
1 parent 4266a46 commit 0c92177
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sources/@roots/bud/src/cli/commands/upgrade/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export default class BudUpgradeCommand extends BudCommand {
}

this.command = this.pm === `npm` ? `install` : `add`
this.pm = this.pm === `yarn-classic` ? `yarn` : this.pm

if (!this.version) {
const get = await import(`@roots/bud-support/axios`)
Expand Down

0 comments on commit 0c92177

Please sign in to comment.