Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function main() {
try {
const changes = await (0, _core.changelog)();
_fs2.default.writeFileSync('./CHANGELOG.md', (0, _markdown.convert)(changes));
} catch (e) {
console.error('Cannot find a git repository in current path.');
}
}