Files
supabase/blocks/vue/index.ts
Ivan Vasilov 191a291c2d feat: Preliminary work for shadcn add @supabase/...block... (#39322)
* 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.
2025-10-07 20:32:24 +02:00

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 }