swanky-cli icon indicating copy to clipboard operation
swanky-cli copied to clipboard

Check command errors on `~` semver range

Open codespool opened this issue 3 years ago • 0 comments

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.

codespool avatar Nov 04 '22 10:11 codespool