mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxi): build all types on typecheck command (#5437)
This commit is contained in:
parent
1347f4b5a0
commit
422d5c4fb5
@ -16,11 +16,12 @@ 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, config: { _prepare: true } })
|
||||
|
||||
// Generate types and close nuxt instance
|
||||
// Generate types and build nuxt instance
|
||||
await writeTypes(nuxt)
|
||||
await buildNuxt(nuxt)
|
||||
await nuxt.close()
|
||||
|
||||
// Prefer local install if possible
|
||||
|
Loading…
Reference in New Issue
Block a user