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/exec.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/exec.js')
-rw-r--r--lib/exec.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/exec.js b/lib/exec.js
index e90ec0866..dab65c23a 100644
--- a/lib/exec.js
+++ b/lib/exec.js
@@ -21,8 +21,6 @@ const usage = usageUtil('exec',
'-c <cmd> --call=<cmd> (may not be mixed with positional arguments)'
)
-const completion = require('./utils/completion/installed-shallow.js')
-
const { promisify } = require('util')
const read = promisify(require('read'))
@@ -284,4 +282,4 @@ const getHash = packages =>
.digest('hex')
.slice(0, 16)
-module.exports = Object.assign(cmd, { completion, usage })
+module.exports = Object.assign(cmd, { usage })