humpty
Version:
Makes sure your changelogs mention your breaking changes
21 lines (19 loc) • 458 B
JavaScript
import printUnmentionedChanges from "./printUnmentionedChanges";
const printResults = (
{ unmentionedChanges, unmentionedChangeCount, oldApi, newApi },
wantsJson
) => {
if (wantsJson) {
console.log(JSON.stringify(unmentionedChanges, null, 2));
} else {
console.log(
printUnmentionedChanges({
unmentionedChanges,
unmentionedChangeCount,
oldApi,
newApi
})
);
}
};
export default printResults;