UNPKG

@fulldevlabs/fullui

Version:

A component library built for Astro

26 lines (19 loc) 737 B
import type { CollectionEntry, CollectionKey } from 'astro:content' import { transformCasing } from './transformCasing' import { transformReferences } from './transformReferences' import { transformSelfs } from './transformSelfs' import { transformUnderscores } from './transformUnderscores' export const transform = async ( entry: CollectionEntry<CollectionKey> ): Promise<any> => { // console.log('entry', entry.data) entry = await transformReferences(entry) // console.log('references', entry) entry = transformUnderscores(entry) // console.log('underscores', entry) entry = transformCasing(entry) // console.log('casing', entry) entry = transformSelfs(entry) // console.log('selfs', entry) return entry }