fix(module): use correct alias for #ui-colors (#913)

This commit is contained in:
Daniel Roe
2023-11-03 11:40:26 +01:00
committed by GitHub
parent 844b3185e9
commit c84438f491

View File

@@ -1,4 +1,3 @@
import { dirname } from 'pathe'
import { useNuxt, addTemplate } from '@nuxt/kit'
export default function createTemplates (nuxt = useNuxt()) {
@@ -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 })