yeoman / update-notifier

Update notifications for your CLI app
BSD 2-Clause "Simplified" License
1.76k stars 132 forks source link

How to get latest specific channel version #194

Closed VerasThiago closed 3 years ago

VerasThiago commented 3 years ago

I was searching on the web and also on update-notifier documentation but unfortunately I haven't found anything about how to check for the latest update for a specific channel.

For example: I have a package that is on the stable version of 1.0.0, but I released a 1.0.0-beta and 2.0.0-beta version. If I have an user that is using this package version at 1.0.0-beta, how can I check for the latest beta version specifically ? Because I think this notifier will get me the latest version of the stable channel, no from beta.

If already this feature already exists, how to use it ?

sindresorhus commented 3 years ago

You want the distTag option.

VerasThiago commented 3 years ago

Thank you! Problem solved