swanky-cli
swanky-cli copied to clipboard
Check command errors on `~` semver range
When checking ink! version:
https://github.com/AstarNetwork/swanky-cli/blob/f5789709931373dcad6b3c3f54668485c3020014/src/commands/check/index.ts#L119
semver.gt() errors out when ~ is used in the version tag.
Could be gt() doesn't support the range operator, and it needs to be checked with a different method in that case.