mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxi): load kit from rootDir
when preparing project (#20401)
This commit is contained in:
parent
5f016b180e
commit
872d681549
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user