Function
normalizedExecutorContext
(
nameOrOpt: string | { projectName: string },
)
Source from the content-addressed store, hash-verified
| 1 | import type { NormalizedExecutorContext } from '../../src/executors/internal/context.js'; |
| 2 | |
| 3 | export function normalizedExecutorContext( |
| 4 | nameOrOpt: string | { projectName: string }, |
| 5 | ): NormalizedExecutorContext { |
| 6 | const { projectName } = |
| 7 | typeof nameOrOpt === 'string' ? { projectName: nameOrOpt } : nameOrOpt; |
| 8 | return { |
| 9 | projectName, |
| 10 | workspaceRoot: 'workspaceRoot', |
| 11 | projectConfig: { |
| 12 | name: projectName, |
| 13 | root: 'root', |
| 14 | }, |
| 15 | }; |
| 16 | } |
Tested by
no test coverage detected