()
| 5 | export const AUTHORS_DIR = path.join(process.cwd(), 'content', 'authors') |
| 6 | |
| 7 | export async function ensureContentDirs() { |
| 8 | await fs.mkdir(BLOG_DIR, { recursive: true }) |
| 9 | await fs.mkdir(AUTHORS_DIR, { recursive: true }) |
| 10 | } |
| 11 | |
| 12 | export function toIsoDate(value: Date | string | number): string { |
| 13 | if (value instanceof Date) return value.toISOString() |
no outgoing calls
no test coverage detected