opencommit
opencommit copied to clipboard
bug: checkIsLatestVersion doesnt work as expected
the function checkIsLatestVersion always returns that version is not latest..
anybody could fix that?
hey @di-sukharev I'm not able to reproduce this bug on my end.
Steps I took to reproduce:
- Clone the opencommit repo.
- Build the project and run
npm link. - Open a dummy project and run
npm link opencommit. - I uncommented the needed lines in cli.ts
- when running with 1.1.22 as the version number in the package.json no message pops up as expected
- when I change the version number in the package.json to something <1.1.22 I get the message as expected.
Let me know if I'm not following correctly.
thanks bro,
it works when tested locally, but it shows the message all the time in prod
here is how it goes for me — when i install latest npm i -g opencommit@latest and run oc --version i see not the latest version, but the version before latest, that's why message is displayed all the time. I believe it's due to some npm latest tag management.
Stale issue message