Skip to content

Commit 37ff846

Browse files
committed
remove temp comments from doctor types
1 parent b4e2e46 commit 37ff846

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/nuxi/src/commands/doctor.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { isBun, isDeno } from 'std-env'
1313
import { loadKit, tryResolveNuxt } from '../utils/kit'
1414
import { cwdArgs, legacyRootDirArgs, logLevelArgs } from './_shared'
1515

16-
// Types for the hook-based architecture (will move to @nuxt/schema)
1716
interface DoctorCheck {
1817
// Required
1918
name: string
@@ -38,7 +37,6 @@ interface DoctorCheckContext {
3837
nuxt: Nuxt
3938
}
4039

41-
// Augment NuxtHooks for the doctor:check hook (will be moved to @nuxt/schema)
4240
declare module '@nuxt/schema' {
4341
interface NuxtHooks {
4442
'doctor:check': (ctx: DoctorCheckContext) => void | Promise<void>
@@ -175,10 +173,7 @@ async function checkVersions(checks: DoctorCheck[], cwd: string): Promise<void>
175173

176174
// Check Node.js version (if not Bun/Deno)
177175
if (!isBun && !isDeno) {
178-
const nodeVersion = process.version
179-
const major = Number.parseInt(nodeVersion.slice(1).split('.')[0] || '0', 10)
180-
181-
if (major < 18) {
176+
if (!semverSatisfies(process.versions.node, '>= 18.0.0')) {
182177
checks.push({
183178
id: 'UNSUPPORTED_NODE',
184179
name: 'Versions',

0 commit comments

Comments
 (0)