File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ const Arborist = require('@npmcli/arborist')
13
13
14
14
const npm = require ( './npm.js' )
15
15
const output = require ( './utils/output.js' )
16
+ const usageUtil = require ( './utils/usage.js' )
16
17
const ansiTrim = require ( './utils/ansi-trim.js' )
17
18
18
- cmd . usage = 'npm outdated [[<@scope>/]<pkg> ...]'
19
- cmd . completion = require ( './utils/completion/installed-deep.js' )
19
+ const usage = usageUtil ( 'outdated' ,
20
+ 'npm outdated [[<@scope>/]<pkg> ...]'
21
+ )
22
+ const completion = ( cb ) => cb ( null , [ ] )
20
23
21
- module . exports = cmd
22
24
function cmd ( args , cb ) {
23
25
outdated ( args , cb )
24
26
. then ( ( ) => cb ( ) )
@@ -267,3 +269,5 @@ function makeJSON (list, opts) {
267
269
} )
268
270
return JSON . stringify ( out , null , 2 )
269
271
}
272
+
273
+ module . exports = Object . assign ( cmd , { completion, usage } )
You can’t perform that action at this time.
0 commit comments