(filePath, json)
| 10 | const SCRIPT = path.join(ROOT, "scripts", "bump-version.mjs"); |
| 11 | |
| 12 | function writeJson(filePath, json) { |
| 13 | fs.mkdirSync(path.dirname(filePath), { recursive: true }); |
| 14 | fs.writeFileSync(filePath, `${JSON.stringify(json, null, 2)}\n`); |
| 15 | } |
| 16 | |
| 17 | function readJson(filePath) { |
| 18 | return JSON.parse(fs.readFileSync(filePath, "utf8")); |
no outgoing calls
no test coverage detected