* Stringify an object and write it to a JSON file. * @param {string} filepath * @param {Object} data * @returns {Promise }
(filepath, data)
| 36 | * @returns {Promise<void>} |
| 37 | */ |
| 38 | async function writeJson(filepath, data) { |
| 39 | await fs.writeFile(filepath, `${JSON.stringify(data, null, 2)}\n`); |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Get the directories of all packages in the monorepo by looking for package.json files. |
no outgoing calls
no test coverage detected