From 872d68154905682668f79ec3c4b07cd5ef0eab35 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 19 Apr 2023 22:28:55 +0100 Subject: [PATCH] fix(nuxi): load kit from `rootDir` when preparing project (#20401) --- packages/nuxi/src/commands/prepare.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nuxi/src/commands/prepare.ts b/packages/nuxi/src/commands/prepare.ts index 121dad7873..4e194e03eb 100644 --- a/packages/nuxi/src/commands/prepare.ts +++ b/packages/nuxi/src/commands/prepare.ts @@ -1,4 +1,3 @@ -import { buildNuxt } from '@nuxt/kit' import { relative, resolve } from 'pathe' import { consola } from 'consola' import { clearDir } from '../utils/fs' @@ -16,7 +15,7 @@ export default defineNuxtCommand({ process.env.NODE_ENV = process.env.NODE_ENV || 'production' const rootDir = resolve(args._[0] || '.') - const { loadNuxt } = await loadKit(rootDir) + const { loadNuxt, buildNuxt } = await loadKit(rootDir) const nuxt = await loadNuxt({ rootDir, overrides: {