Skip to content

Commit

Permalink
fix(add): always remove destYalcCopyDir entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jan 2, 2019
1 parent efe5889 commit 63e81b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ export const addPackages = async (
if (!pkg) {
return
}
const destYalcCopyDir = join(workingDir, values.yalcPackagesFolder, name)

emptyDirExcludeNodeModules(destYalcCopyDir)
const destYalcCopyDir = join(workingDir, values.yalcPackagesFolder, name)
fs.removeSync(destYalcCopyDir)
fs.copySync(storedPackageDir, destYalcCopyDir)

let replacedVersion = ''
Expand Down

0 comments on commit 63e81b9

Please sign in to comment.