UNPKG

cosmic-interchain-cli

Version:

A command-line utility for Cosmic Wire's interchain messaging protocol

15 lines 633 B
import latestVersion from 'latest-version'; import { log } from '../logger.js'; import { VERSION } from '../version.js'; export async function checkVersion() { const argv = process.argv; // The latestVersion lib (or one of its deps) is confused by the --registry value // in the CLI's args, so we need to clear the args before calling it process.argv = []; const currentVersion = await latestVersion('@hyperlane-xyz/cli'); process.argv = argv; if (VERSION < currentVersion) { log(`Your CLI version: ${VERSION}, latest version: ${currentVersion}`); } } //# sourceMappingURL=version-check.js.map