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
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2021-02-23 02:59:21 +0300
committerGar <gar+gh@danger.computer>2021-02-25 21:23:43 +0300
commit113b1319f9e9c90694454bebc9dc12111a441ecf (patch)
tree7dd6bd1e39dd16889c2912f419307c029969b6d1 /lib/prune.js
parent881a8558de5cb808c9efdcf3fb5d0a86a95e8eb0 (diff)
chore(refactor): promisify completion scripts
We also removed the "none" script because we handle a missing script just fine. There is no need to put an empty one in PR-URL: https://github.com/npm/cli/pull/2759 Credit: @wraithgar Close: #2759 Reviewed-by: @nlf
Diffstat (limited to 'lib/prune.js')
-rw-r--r--lib/prune.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/prune.js b/lib/prune.js
index ea6ed4108..228fd3eeb 100644
--- a/lib/prune.js
+++ b/lib/prune.js
@@ -8,7 +8,6 @@ const reifyFinish = require('./utils/reify-finish.js')
const usage = usageUtil('prune',
'npm prune [[<@scope>/]<pkg>...] [--production]'
)
-const completion = require('./utils/completion/none.js')
const cmd = (args, cb) => prune().then(() => cb()).catch(cb)
@@ -22,4 +21,4 @@ const prune = async () => {
await reifyFinish(arb)
}
-module.exports = Object.assign(cmd, { usage, completion })
+module.exports = Object.assign(cmd, { usage })