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

Commit

Permalink
fix: fixes types generation with nuxt v3.7 (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: productdevbook <hi@productdevbook.com>
  • Loading branch information
kuizuo and productdevbook committed Aug 29, 2023
1 parent d12dd96 commit a7490e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export default defineNuxtModule<ModuleOptions>({
tsConfig ||= {}
tsConfig.compilerOptions ||= {}
tsConfig.compilerOptions.types ||= []

tsConfig.compilerOptions.types.push('naive-ui/volar')
references.push({
path: resolve(nuxt.options.buildDir, 'types/naive-ui.d.ts'),
Expand Down

0 comments on commit a7490e8

Please sign in to comment.