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

Function toContext

packages/create-cli/src/lib/setup/monorepo.ts:61–67  ·  view source on GitHub ↗
(mode: SetupMode, tool: MonorepoTool | null)

Source from the content-addressed store, hash-verified

59}
60
61function toContext(mode: SetupMode, tool: MonorepoTool | null): ConfigContext {
62 if (mode === 'monorepo' && tool == null) {
63 logger.warn('No monorepo tool detected, falling back to standalone mode.');
64 return { mode: 'standalone', tool: null };
65 }
66 return { mode, tool };
67}
68
69export async function listProjects(
70 cwd: string,

Callers 1

promptSetupModeFunction · 0.85

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected