Skip to content

Commit a531e6f

Browse files
committed
fix(nuxt): exempt equality check for kit/schema version
1 parent e564961 commit a531e6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nuxt/src/core/nuxt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import fse from 'fs-extra'
1313
import { withTrailingSlash, withoutLeadingSlash } from 'ufo'
1414

1515
import defu from 'defu'
16-
import { gte } from 'semver'
16+
import { gt } from 'semver'
1717
import pagesModule from '../pages/module'
1818
import metaModule from '../head/module'
1919
import componentsModule from '../components/module'
@@ -646,7 +646,7 @@ async function checkDependencyVersion (name: string, nuxtVersion: string): Promi
646646
if (!path) { return }
647647
const { version } = await readPackageJSON(path)
648648

649-
if (version && !gte(nuxtVersion, version)) {
649+
if (version && gt(nuxtVersion, version)) {
650650
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.`)
651651
}
652652
}

0 commit comments

Comments
 (0)