Skip to content

Commit

Permalink
no op when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmgdr committed Oct 23, 2023
1 parent 88e0c63 commit 47560c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function publish() {
if (!line) return
return line[0].replace('info Publishing ', '').replace(' at ', '@')
})
const result = pkgs ? JSON.stringify(pkgs) : 'no-op'
const result = pkgs.length ? JSON.stringify(pkgs) : 'no-op'
process.stdout.write(result)
}

Expand Down

0 comments on commit 47560c4

Please sign in to comment.