From a531e6f466371c5326a5f2d97434f682cef05d5f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 21 May 2024 16:55:22 +0100 Subject: [PATCH] fix(nuxt): exempt equality check for kit/schema version --- packages/nuxt/src/core/nuxt.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/src/core/nuxt.ts b/packages/nuxt/src/core/nuxt.ts index f80bd11551..e3aac36469 100644 --- a/packages/nuxt/src/core/nuxt.ts +++ b/packages/nuxt/src/core/nuxt.ts @@ -13,7 +13,7 @@ import fse from 'fs-extra' import { withTrailingSlash, withoutLeadingSlash } from 'ufo' import defu from 'defu' -import { gte } from 'semver' +import { gt } from 'semver' import pagesModule from '../pages/module' import metaModule from '../head/module' import componentsModule from '../components/module' @@ -646,7 +646,7 @@ async function checkDependencyVersion (name: string, nuxtVersion: string): Promi if (!path) { return } const { version } = await readPackageJSON(path) - if (version && !gte(nuxtVersion, version)) { + if (version && gt(nuxtVersion, version)) { console.warn(`[nuxt] Expected \`${name}\` to be at least \`${nuxtVersion}\` but got \`${version}\`. This might lead to unexpected behavior. Check your package.json or refresh your lockfile.`) } }