* Build the current registry. * Export the blocks as JSON and import them into registry.json. * Move the registry.json into public/r. * Fix a prettier error. * Clean up extra files in vue blocks. * Bump shadcn. * Readd shadcn to vue blocks. * Fix the shadcn types. * Remove extra package exclusions.
15 lines
374 B
TypeScript
15 lines
374 B
TypeScript
import { blocks as originBlocks } from './registry/index'
|
|
|
|
const blocks = originBlocks.map((item) => {
|
|
const newItem = { ...item }
|
|
newItem.files = newItem.files?.map((file) => {
|
|
if (file.path.startsWith('registry/')) {
|
|
return { ...file, path: `node_modules/@supabase/vue-blocks/${file.path}` }
|
|
}
|
|
return file
|
|
})
|
|
return newItem
|
|
})
|
|
|
|
export { blocks }
|