Skip to content

Commit 5bff9c3

Browse files
authored
fix(upgrade-all): avoid accidentally writing outdated package.json back (#4634)
1 parent cd5f404 commit 5bff9c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/@vue/cli/lib/Upgrader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ module.exports = class Upgrader {
4545
}
4646

4747
for (const p of upgradable) {
48+
this.pkg = getPackageJson(this.context)
4849
await this.upgrade(p.name, { to: p.latest })
4950
}
5051

0 commit comments

Comments
 (0)