MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / buildContext

Function buildContext

apps/api/scripts/lint-meta/context.ts:115–131  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

113}
114
115export function buildContext(root: string): IMetaContext {
116 const sourceFiles = [
117 ...SOURCE_DIRS.flatMap((dir) =>
118 collectSourceFiles(
119 join(root, dir),
120 dir === "tests" ? TESTS_LINT_META_SKIP : []
121 )
122 ),
123 ...collectSourceFiles(join(root, "scripts"), []),
124 ];
125
126 return {
127 root,
128 sourceFiles,
129 workflowFiles: findWorkflows(resolveWorkflowsDir(root)),
130 };
131}

Callers 1

mainFunction · 0.90

Calls 3

collectSourceFilesFunction · 0.70
findWorkflowsFunction · 0.70
resolveWorkflowsDirFunction · 0.70

Tested by

no test coverage detected