assetFiles
uses tcmts.cli.mirror.gitKept, which uses node:child_process
The files under a mirrored directory that aren't code (Markdown, CSS, images, configuration, scripts): files of the codebase. In a git repository, only what git keeps (not what it ignores).
import { assetsUnder, gitKept } from "#codebase/tcmts/cli/mirror"; export function assetFiles(dir: string, exclude: Set<string>, marked?: { at: string; skip: string[] }): string[] { if (!marked) { const kept = gitKept(dir); if (kept) return assetsUnder(dir, exclude, undefined).filter((f) => kept.has(f)); } return assetsUnder(dir, exclude, marked); }