Skip to content

Commit

Permalink
fix(global): handle select no packages (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Feb 3, 2025
1 parent 47d0826 commit 9ba7eb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/check/checkGlobal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export async function checkGlobal(options: CheckOptions) {
if (options.interactive)
resolvePkgs = await promptInteractive(resolvePkgs, options) as GlobalPackageMeta[]

if (!resolvePkgs.length) {
return exitCode
}

const { lines, errLines } = renderPackages(resolvePkgs, options)

const hasChanges = resolvePkgs.length && resolvePkgs.some(i => i.resolved.some(j => j.update))
Expand Down

0 comments on commit 9ba7eb0

Please sign in to comment.