()
| 35 | async function safeWriteJson(filePath: string, data: any, options?: SafeWriteJsonOptions): Promise<void> { |
| 36 | const absoluteFilePath = path.resolve(filePath) |
| 37 | let releaseLock = async () => {} // Initialized to a no-op |
| 38 | |
| 39 | // For directory creation |
| 40 | const dirPath = path.dirname(absoluteFilePath) |