Fix Windows daemon repro protocol lookup

This commit is contained in:
Jinwoo Hong
2026-07-19 20:09:23 -07:00
parent 99c79d5f10
commit a5565fd058
@@ -22,7 +22,10 @@ function log(message) {
}
function readProtocolVersion() {
const source = readFileSync(join(projectDir, 'src/main/daemon/types.ts'), 'utf8')
const source = readFileSync(
join(projectDir, 'src/main/daemon/daemon-protocol-version.ts'),
'utf8'
)
const match = source.match(/PROTOCOL_VERSION\s*=\s*(\d+)/)
if (!match) {
throw new Error('Could not read the daemon protocol version')