( options: Partial<GlobalExecutorOptions & Record<string, unknown>>, context: BaseNormalizedExecutorContext, )
| 9 | } from './types.js'; |
| 10 | |
| 11 | export 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 | |
| 25 | export function persistConfig( |
| 26 | options: Partial<PersistConfig & ProjectExecutorOnlyOptions>, |
no outgoing calls
no test coverage detected