Skip to content

Commit 7d2d1fb

Browse files
author
Guillaume Chau
committed
fix(local plugin): remove folder before copying
1 parent b0f6ed8 commit 7d2d1fb

File tree

1 file changed

+1
-0
lines changed
  • packages/@vue/cli-ui/apollo-server/connectors

1 file changed

+1
-0
lines changed

packages/@vue/cli-ui/apollo-server/connectors/plugins.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ function update (id, context) {
492492
async function updateLocalPackage ({ id, cwd, localPath }, context) {
493493
const from = path.resolve(cwd, localPath)
494494
const to = path.resolve(cwd, 'node_modules', ...id.split('/'))
495+
await fs.remove(to)
495496
await fs.copy(from, to)
496497
}
497498

0 commit comments

Comments
 (0)