()
| 599 | }), |
| 600 | |
| 601 | _readResolverResultCache() { |
| 602 | if (! this._resolverResultCache) { |
| 603 | try { |
| 604 | this._resolverResultCache = |
| 605 | JSON.parse(files.readFile(files.pathJoin( |
| 606 | this.projectLocalDir, |
| 607 | "resolver-result-cache.json" |
| 608 | ))); |
| 609 | } catch (e) { |
| 610 | if (e.code !== "ENOENT") throw e; |
| 611 | this._resolverResultCache = {}; |
| 612 | } |
| 613 | } |
| 614 | |
| 615 | return this._resolverResultCache; |
| 616 | }, |
| 617 | |
| 618 | _saveResolverResultCache() { |
| 619 | files.writeFileAtomically( |