Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/monoman. Manage monorepo common files.
Something went wrong. Try again.
123456789101112131415161718192021222324252627import type { Arrayable, Awaitable } from '@antfu/utils'import type { DumpOptions } from 'js-yaml'
export interface Context { filePath: string files: string[]}
export type Config = ({ include: Arrayable<string> exclude?: Arrayable<string>} & ( | { type: 'text' contents?: (text: string | null, context: Context) => Awaitable<string> } | { type: 'json' contents?: (data: any, context: Context) => Awaitable<unknown> } | { type: 'yaml' contents?: (data: any, context: Context) => Awaitable<unknown> dumpOptions?: DumpOptions }))[]