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()
})
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too