mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(nuxt3): restore auto-imports.d.ts
to nuxt.d.ts
(#1282)
This commit is contained in:
parent
ffb05fc734
commit
101eaa9baf
@ -77,6 +77,11 @@ export default defineNuxtModule<AutoImportsOptions>({
|
|||||||
}
|
}
|
||||||
await updateAutoImports()
|
await updateAutoImports()
|
||||||
|
|
||||||
|
// Add generated types to `nuxt.d.ts`
|
||||||
|
nuxt.hook('prepare:types', ({ references }) => {
|
||||||
|
references.push({ path: resolve(nuxt.options.buildDir, 'auto-imports.d.ts') })
|
||||||
|
})
|
||||||
|
|
||||||
// Watch composables/ directory
|
// Watch composables/ directory
|
||||||
nuxt.hook('builder:watch', async (_, path) => {
|
nuxt.hook('builder:watch', async (_, path) => {
|
||||||
const _resolved = resolve(nuxt.options.srcDir, path)
|
const _resolved = resolve(nuxt.options.srcDir, path)
|
||||||
|
Loading…
Reference in New Issue
Block a user