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

Commit f668181

Browse files
tarekshaclaudiahdz
authored andcommittedOct 9, 2019
chore: delete node_modules contents but keep the dir itself
PR-URL: #1 Credit: @tareqhs Close: #1 Reviewed-by: @claudiahdz
1 parent 3394de0 commit f668181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class Installer {
137137
)
138138
return BB.join(
139139
this.checkLock(),
140-
stat && rimraf(path.join(this.prefix, 'node_modules'))
140+
stat && rimraf(path.join(this.prefix, 'node_modules/*'))
141141
)
142142
}).then(() => {
143143
// This needs to happen -after- we've done checkLock()

0 commit comments

Comments
 (0)
This repository has been archived.