File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,6 @@ export async function checkGlobal(options: CheckOptions) {
57
57
if ( options . interactive )
58
58
resolvePkgs = await promptInteractive ( resolvePkgs , options ) as GlobalPackageMeta [ ]
59
59
60
- if ( ! resolvePkgs . length ) {
61
- return exitCode
62
- }
63
-
64
60
const { lines, errLines } = renderPackages ( resolvePkgs , options )
65
61
66
62
const hasChanges = resolvePkgs . length && resolvePkgs . some ( i => i . resolved . some ( j => j . update ) )
@@ -185,6 +181,8 @@ async function loadGlobalNpmPackage(options: CheckOptions): Promise<GlobalPackag
185
181
186
182
async function installPkg ( pkg : GlobalPackageMeta ) {
187
183
const changes = pkg . resolved . filter ( i => i . update )
184
+ if ( ! changes . length )
185
+ return
188
186
const dependencies = dumpDependencies ( changes , 'dependencies' )
189
187
const updateArgs = Object . entries ( dependencies ) . map ( ( [ name , version ] ) => `${ name } @${ version } ` )
190
188
const install = getCommand ( pkg . agent , 'global' , [ ...updateArgs ] )
You can’t perform that action at this time.
0 commit comments