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

Function normalizeContext

packages/nx-plugin/src/executors/internal/context.ts:8–21  ·  view source on GitHub ↗
(
  context: ExecutorContext,
)

Source from the content-addressed store, hash-verified

6};
7
8export function normalizeContext(
9 context: ExecutorContext,
10): NormalizedExecutorContext {
11 const {
12 projectName = '',
13 root: workspaceRoot,
14 projectsConfigurations,
15 } = context;
16 return {
17 projectName,
18 projectConfig: projectsConfigurations?.projects[projectName],
19 workspaceRoot,
20 };
21}

Callers 2

runCliExecutorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected