Skip to content

Commit

Permalink
fix(module): use correct alias for #ui-colors (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 3, 2023
1 parent 844b318 commit c84438f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/templates.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { dirname } from 'pathe'
import { useNuxt, addTemplate } from '@nuxt/kit'

export default function createTemplates (nuxt = useNuxt()) {
Expand All @@ -13,7 +12,7 @@ export default function createTemplates (nuxt = useNuxt()) {
write: true
})

nuxt.options.alias['#ui-colors'] = dirname(template.dst)
nuxt.options.alias['#ui-colors'] = template.dst

nuxt.hook('prepare:types', (opts) => {
opts.references.push({ path: typesTemplate.dst })
Expand Down

0 comments on commit c84438f

Please sign in to comment.