Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

refactor(nuxt)!: rename autoImports to imports #6864

Merged
merged 12 commits into from
Aug 23, 2022
Prev Previous commit
Next Next commit
fix ts issue
/cc @danielroe maybe wrong in hookable types?
  • Loading branch information
pi0 committed Aug 23, 2022
commit 04625adac20a36f9ca14709e90398eb9b229388d
3 changes: 2 additions & 1 deletion packages/nuxt/src/imports/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ export default defineNuxtModule<Partial<ImportsOptions>>({
// @ts-ignore
options = defu(nuxt.options['auto-imports'], options)
}

// @ts-expect-error
nuxt.hooks.deprecateHooks({
// @ts-expect-error
'autoImports:sources': { to: 'imports:sources' },
'autoImports:dirs': { to: 'imports:dirs' },
'autoImports:extend': { to: 'imports:extend' }
Expand Down