diff options
author | nlf <quitlahok@gmail.com> | 2020-10-29 23:30:25 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2020-10-30 20:32:27 +0300 |
commit | 2a680e91a2be1f3f03a6fbd946f74628ee1cb370 (patch) | |
tree | 9a7f08e9fa6b6b73de370bd486e579c1224e8b5d /lib/ci.js | |
parent | 81d6ceef6947e46355eb3ddb05a73da50870dfc1 (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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 }) |