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

Function globalConfig

packages/nx-plugin/src/executors/internal/config.ts:11–23  ·  view source on GitHub ↗
(
  options: Partial<GlobalExecutorOptions & Record<string, unknown>>,
  context: BaseNormalizedExecutorContext,
)

Source from the content-addressed store, hash-verified

9} from './types.js';
10
11export function globalConfig(
12 options: Partial<GlobalExecutorOptions & Record<string, unknown>>,
13 context: BaseNormalizedExecutorContext,
14): GlobalExecutorOptions {
15 const { projectConfig } = context;
16 const { root: projectRoot = '' } = projectConfig ?? {};
17 const { verbose, config, command } = options;
18 return {
19 command,
20 verbose: !!verbose,
21 config: config ?? path.join(projectRoot, 'code-pushup.config.ts'),
22 };
23}
24
25export function persistConfig(
26 options: Partial<PersistConfig & ProjectExecutorOnlyOptions>,

Callers 2

parseCliExecutorOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected