Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/ci.js
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2020-10-29 23:30:25 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2020-10-30 20:32:27 +0300
commit2a680e91a2be1f3f03a6fbd946f74628ee1cb370 (patch)
tree9a7f08e9fa6b6b73de370bd486e579c1224e8b5d /lib/ci.js
parent81d6ceef6947e46355eb3ddb05a73da50870dfc1 (diff)
delete the contents of node_modules only
PR-URL: https://github.com/npm/cli/pull/2083 Credit: @nlf Close: #2083 Reviewed-by: @darcyclarke
Diffstat (limited to 'lib/ci.js')
-rw-r--r--lib/ci.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci.js b/lib/ci.js
index a0728f8a4..a72e1c0cf 100644
--- a/lib/ci.js
+++ b/lib/ci.js
@@ -31,7 +31,7 @@ const ci = async () => {
'later to generate a package-lock.json file, then try again.'
throw new Error(msg)
}),
- rimraf(`${where}/node_modules/`),
+ rimraf(`${where}/node_modules/*`, { glob: { dot: true, nosort: true, silent: true } }),
])
// npm ci should never modify the lockfile or package.json
await arb.reify({ save: false })