17 lines
393 B
JavaScript
17 lines
393 B
JavaScript
|
import { dirname, join } from 'node:path'
|
||
|
import { fileURLToPath } from 'node:url'
|
||
|
import { defineNuxtModule } from '@nuxt/kit'
|
||
|
|
||
|
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||
|
|
||
|
export default defineNuxtModule({
|
||
|
hooks: {
|
||
|
'components:dirs': function (dirs) {
|
||
|
dirs.push({
|
||
|
path: join(__dirname, 'components/ui'),
|
||
|
// prefix: 'Shadcn',
|
||
|
})
|
||
|
},
|
||
|
},
|
||
|
})
|