Skip to content

Commit

Permalink
fix(upgrade): use force flag when removing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz authored and Julien-R44 committed Jan 25, 2024
1 parent f663f31 commit 6c4f589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patchers/upgrade_packages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class UpgradePackages extends BasePatcher {
}

async #removePackages(packages: string[]) {
await execa(this.#pkgManager!, ['remove', ...packages], { cwd: this.#rootDir })
await execa(this.#pkgManager!, ['remove', ...packages, '--force'], { cwd: this.#rootDir })
}

async #replacePackages(entries: Array<{ old: string; name: string }>, isDev: boolean) {
Expand Down

0 comments on commit 6c4f589

Please sign in to comment.