()
| 2131 | // ── Main ──────────────────────────────────────────────────────────────────── |
| 2132 | |
| 2133 | function parseSchemaArgs(): { |
| 2134 | sessionEventsSchemaPath?: string; |
| 2135 | apiSchemaPath?: string; |
| 2136 | } { |
| 2137 | const [firstArg, secondArg] = process.argv.slice(2); |
| 2138 | if (secondArg) { |
| 2139 | return { |
| 2140 | sessionEventsSchemaPath: firstArg, |
| 2141 | apiSchemaPath: secondArg, |
| 2142 | }; |
| 2143 | } |
| 2144 | |
| 2145 | return { |
| 2146 | apiSchemaPath: firstArg, |
| 2147 | }; |
| 2148 | } |
| 2149 | |
| 2150 | async function generate(): Promise<void> { |
| 2151 | console.log("Loading schemas..."); |
no outgoing calls
no test coverage detected
searching dependent graphs…