MCPcopy Create free account
hub / github.com/code-pushup/cli / detectMonorepoTool

Function detectMonorepoTool

packages/utils/src/lib/monorepo.ts:23–33  ·  view source on GitHub ↗
(
  cwd: string,
)

Source from the content-addressed store, hash-verified

21};
22
23export async function detectMonorepoTool(
24 cwd: string,
25): Promise<MonorepoTool | null> {
26 // eslint-disable-next-line functional/no-loop-statements
27 for (const tool of MONOREPO_TOOLS) {
28 if (await MONOREPO_TOOL_DETECTORS[tool](cwd)) {
29 return tool;
30 }
31 }
32 return null;
33}
34
35export function isMonorepoTool(value: string): value is MonorepoTool {
36 return MONOREPO_TOOLS.includes(value as MonorepoTool);

Callers 3

promptSetupModeFunction · 0.90
resolveMonorepoToolFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected