mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-15 20:00:38 -06:00
fix(local plugin): remove folder before copying
This commit is contained in:
@@ -492,6 +492,7 @@ function update (id, context) {
|
||||
async function updateLocalPackage ({ id, cwd, localPath }, context) {
|
||||
const from = path.resolve(cwd, localPath)
|
||||
const to = path.resolve(cwd, 'node_modules', ...id.split('/'))
|
||||
await fs.remove(to)
|
||||
await fs.copy(from, to)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user