RuralDatabase/packages/ui/nuxt.mjs

21 lines
487 B
JavaScript
Raw Permalink Normal View History

2024-06-30 21:39:37 +08:00
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',
})
2024-07-05 02:07:18 +08:00
dirs.push({
path: join(__dirname, 'lib'),
// prefix: 'Shadcn',
})
2024-06-30 21:39:37 +08:00
},
},
})