UNPKG

yarn-changed-workspaces

Version:

An utility to show changed workspaces and their dependants

9 lines (6 loc) 214 B
const { promises: fs } = require("fs"); const readJSONFile = async (filePath) => { const buf = await fs.readFile(filePath, "utf-8"); return JSON.parse(buf.toString()); }; exports.readJSONFile = readJSONFile;