diff options
Diffstat (limited to 'deps/npm/lib/run-script.js')
-rw-r--r-- | deps/npm/lib/run-script.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/deps/npm/lib/run-script.js b/deps/npm/lib/run-script.js index 8e24a8a44e9..4dfb854cad9 100644 --- a/deps/npm/lib/run-script.js +++ b/deps/npm/lib/run-script.js @@ -14,16 +14,14 @@ const usage = usageUtil( 'npm run-script <command> [-- <args>]' ) -const completion = async (opts, cb) => { +const completion = async (opts) => { const argv = opts.conf.argv.remain if (argv.length === 2) { // find the script name const json = resolve(npm.localPrefix, 'package.json') const { scripts = {} } = await readJson(json).catch(er => ({})) - return cb(null, Object.keys(scripts)) + return Object.keys(scripts) } - // otherwise nothing to do, just let the system handle it - return cb() } const cmd = (args, cb) => { |