From 8393d6701dd024ca91d1f320e64c9d4fe3957643 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Wed, 8 Jan 2025 16:27:57 +0100 Subject: [PATCH] fix: missing name in nuxt object --- packages/nuxt/src/core/nuxt.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/nuxt.ts b/packages/nuxt/src/core/nuxt.ts index 6b2e8ae0d4..bddfc1cecd 100644 --- a/packages/nuxt/src/core/nuxt.ts +++ b/packages/nuxt/src/core/nuxt.ts @@ -50,7 +50,7 @@ import { randomUUID } from 'node:crypto' export function createNuxt (options: NuxtOptions): Nuxt { const hooks = createHooks() - const name = randomUUID() + const name = randomUUID() // TODO find project name in package json instead const nuxt: Nuxt = { _version: version, options, @@ -62,6 +62,7 @@ export function createNuxt (options: NuxtOptions): Nuxt { close: () => hooks.callHook('close', nuxt), vfs: {}, apps: {}, + name } hooks.hookOnce('close', () => { hooks.removeAllHooks() })