(tsVersion, filename)
| 35 | * @param {string} filename |
| 36 | */ |
| 37 | const updateTsConfig = async (tsVersion, filename) => { |
| 38 | const buffer = await fs.readFile(filename); |
| 39 | const jsonString = buffer.toString("utf8"); |
| 40 | const json = JSON.parse(jsonString); |
| 41 | |
| 42 | applyRules(json, tsVersion); |
| 43 | |
| 44 | await fs.writeFile(filename, JSON.stringify(json, null, " ")); |
| 45 | }; |
| 46 | |
| 47 | const tsVersion = findTsVersion("yarn.lock"); |
| 48 | if (tsVersion === undefined) { |
no test coverage detected
searching dependent graphs…