(cache: CacheFileShape)
| 123 | } |
| 124 | |
| 125 | private async writeCacheFile(cache: CacheFileShape): Promise<void> { |
| 126 | await mkdir(dirname(this.cacheFilePath), { recursive: true }); |
| 127 | await writeFile(this.cacheFilePath, JSON.stringify(cache, null, 2), 'utf8'); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | function emptyCacheFile(): CacheFileShape { |