()
| 205 | } |
| 206 | |
| 207 | async function assertCliEntryExists(): Promise<void> { |
| 208 | try { |
| 209 | await access(ELECTRIC_CLI_ENTRY_PATH, fsConstants.F_OK) |
| 210 | } catch { |
| 211 | throw new Error( |
| 212 | `Bundled Electric CLI was not found at ${ELECTRIC_CLI_ENTRY_PATH}. Run the desktop build first.` |
| 213 | ) |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | function shimContents(): string { |
| 218 | return process.platform === `win32` |