()
| 375 | // on the ports of the stack that was actually started, even when dev:start |
| 376 | // auto-probed away from the hash default. |
| 377 | export function readPersistedPortOffset(repoRoot: string): number | undefined { |
| 378 | try { |
| 379 | const value = Number( |
| 380 | fs.readFileSync(path.join(repoRoot, 'dev', 'logs', 'port-offset'), 'utf-8').trim() |
| 381 | ); |
| 382 | if (Number.isInteger(value) && value >= 0) return value; |
no test coverage detected