From 113b1319f9e9c90694454bebc9dc12111a441ecf Mon Sep 17 00:00:00 2001 From: Gar Date: Mon, 22 Feb 2021 15:59:21 -0800 Subject: 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 --- lib/init.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/init.js') diff --git a/lib/init.js b/lib/init.js index 60ea52e16..a029779f8 100644 --- a/lib/init.js +++ b/lib/init.js @@ -3,7 +3,6 @@ const npa = require('npm-package-arg') const npm = require('./npm.js') const usageUtil = require('./utils/usage.js') -const completion = require('./utils/completion/none.js') const output = require('./utils/output.js') const usage = usageUtil( @@ -86,4 +85,4 @@ const init = async args => { }) } -module.exports = Object.assign(cmd, { completion, usage }) +module.exports = Object.assign(cmd, { usage }) -- cgit v1.2.3