Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
chore: delete node_modules contents but keep the dir itself
Browse files Browse the repository at this point in the history
PR-URL: #1
Credit: @tareqhs
Close: #3
Reviewed-by: @claudiahdz
  • Loading branch information
tareksha authored and claudiahdz committed Oct 8, 2019
1 parent 17679d7 commit 535c17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Installer {
)
return BB.join(
this.checkLock(),
stat && rimraf(path.join(this.prefix, 'node_modules'))
stat && rimraf(path.join(this.prefix, 'node_modules/*'))
)
}).then(() => {
// This needs to happen -after- we've done checkLock()
Expand Down

0 comments on commit 535c17d

Please sign in to comment.