(lockPath: string)
| 98 | } |
| 99 | |
| 100 | function readLockFile(lockPath: string): { pid?: number } | null { |
| 101 | try { |
| 102 | const raw = fs.readFileSync(lockPath, 'utf8'); |
| 103 | const parsed = JSON.parse(raw) as any; |
| 104 | return parsed && typeof parsed === 'object' ? parsed : null; |
| 105 | } catch { |
| 106 | return null; |
| 107 | } |
| 108 | } |
no outgoing calls
no test coverage detected