(rootPath)
| 215 | */ |
| 216 | module.exports = class PackageCache { |
| 217 | constructor(rootPath) { |
| 218 | this.rootPath = rootPath || originalWorkingDirectory; |
| 219 | |
| 220 | let configPath = path.join(this.rootPath, 'tmp', 'package-cache.json'); |
| 221 | this._conf = new Configstore( |
| 222 | 'package-cache', |
| 223 | {}, |
| 224 | { |
| 225 | configPath, |
| 226 | } |
| 227 | ); |
| 228 | |
| 229 | this._cleanDirs(); |
| 230 | } |
| 231 | |
| 232 | get dirs() { |
| 233 | return this._conf.all; |
nothing calls this directly
no test coverage detected