* Resolve the TypeScript entrypoint for development mode.
(projectRoot: string)
| 38 | * Resolve the TypeScript entrypoint for development mode. |
| 39 | */ |
| 40 | function resolveEntrypoint(projectRoot: string): string { |
| 41 | const srcEntrypoint = join(projectRoot, 'src', 'index.ts'); |
| 42 | if (existsSync(srcEntrypoint)) { |
| 43 | return srcEntrypoint; |
| 44 | } |
| 45 | |
| 46 | throw new Error('No CLI entrypoint found (expected src/index.ts)'); |
| 47 | } |
| 48 | |
| 49 | export interface HappyCliCommand { |
| 50 | command: string; |
no outgoing calls
no test coverage detected