import type { CheckTarget } from "../../lib/check"; import { APP_PATHS } from "../../lib/paths"; import { APP_COMPOSE_SCHEMAS } from "../schemas"; export function buildAppCheckTargets(root: string): CheckTarget[] { return [ { glob: `${root}/README.md`, schemaPath: APP_COMPOSE_SCHEMAS.app }, { glob: `${root}/${APP_PATHS.docs.actor}/*.md`, schemaPath: APP_COMPOSE_SCHEMAS.actor }, { glob: `${root}/${APP_PATHS.docs.businessFlow}/*/README.md`, schemaPath: APP_COMPOSE_SCHEMAS["business-flow"], }, { glob: `${root}/${APP_PATHS.docs.businessFlow}/*/${APP_PATHS.docs.story}/*.md`, schemaPath: APP_COMPOSE_SCHEMAS.story, }, { glob: `${root}/${APP_PATHS.docs.screen}/*.md`, schemaPath: APP_COMPOSE_SCHEMAS.screen }, { glob: `${root}/${APP_PATHS.docs.resolver}/*.md`, schemaPath: APP_COMPOSE_SCHEMAS.resolver }, ]; }