From 48f0eade12dd376b155064c9337506cc02b3c9cc Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 5 Aug 2023 09:43:51 +0100 Subject: [PATCH] fix(nuxi): display log when restarting nuxt (#22500) --- packages/nuxi/src/commands/dev.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/nuxi/src/commands/dev.ts b/packages/nuxi/src/commands/dev.ts index d979872066..d4fd7e6f85 100644 --- a/packages/nuxi/src/commands/dev.ts +++ b/packages/nuxi/src/commands/dev.ts @@ -86,9 +86,7 @@ export default defineNuxtCommand({ await currentNuxt.close().catch(() => {}) await watcher.close().catch(() => {}) await distWatcher.close().catch(() => {}) - if (reason) { - consola.info(`${reason ? reason + '. ' : ''}Restarting nuxt...`) - } + consola.info(`${reason ? reason + '. ' : ''}Restarting nuxt...`) process.send({ type: 'nuxt:restart' }) } else { await load(true, reason)