(filePath: string)
| 26 | } |
| 27 | |
| 28 | function tempPathFor(filePath: string): string { |
| 29 | const dir = dirname(filePath); |
| 30 | const base = basename(filePath); |
| 31 | const nonce = `${process.pid}.${Date.now()}.${Math.random().toString(16).slice(2)}`; |
| 32 | return join(dir, `.${base}.${nonce}.tmp`); |
| 33 | } |
| 34 | |
| 35 | export async function readJsonFile<T>( |
| 36 | filePath: string, |
no test coverage detected