Commit 4ed8eac2 authored by Anton's avatar Anton Committed by Anton
Browse files

fix: import semver correctly

parent 7c71949b
import satisfies from "semver/functions/satisfies";
import semver from "semver";
import kleur from "kleur";
import { version } from "../package";
......@@ -36,7 +36,7 @@ export function compatibilityCheck(
options?: Partial<CompatibilityOptions>
): boolean {
const { silent, version: current, logger } = { ...defaults, ...options };
const valid = satisfies(current, declared);
const valid = semver.satisfies(current, declared);
if (valid || silent) {
return valid;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment