Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it work for Semantically Release packages #120

Open
tunnckoCore opened this issue Jul 18, 2017 · 0 comments
Open

Make it work for Semantically Release packages #120

tunnckoCore opened this issue Jul 18, 2017 · 0 comments

Comments

@tunnckoCore
Copy link

tunnckoCore commented Jul 18, 2017

Just seem to not work for packages that is released with semantic-release, because version is something like 0.0.0-development (this is the default, but may have others like 0.0.0-semantically-released).

So the workaround now is in such CLIs to access the registry and get the version and pass it to update-notifier. It would be good to handle that case.

ref: https://github.com/sindresorhus/package-json

example workaround:

packageJson('my-awesome-pkg').then((info) => {
  updateNotifier({ pkg: info }).notify()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant