mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 17:07:22 +00:00
fix(nuxi): create buildDir before writing types (#1930)
This commit is contained in:
parent
33107d8b98
commit
36f3691bf8
@ -1,4 +1,5 @@
|
||||
import { resolve } from 'pathe'
|
||||
import { clearDir } from '../utils/fs'
|
||||
import { loadKit } from '../utils/kit'
|
||||
import { writeTypes } from '../utils/prepare'
|
||||
import { defineNuxtCommand } from './index'
|
||||
@ -15,6 +16,7 @@ export default defineNuxtCommand({
|
||||
|
||||
const { loadNuxt } = await loadKit(rootDir)
|
||||
const nuxt = await loadNuxt({ rootDir })
|
||||
await clearDir(nuxt.options.buildDir)
|
||||
|
||||
await writeTypes(nuxt)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user