Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(changelog, version = SEMVER.patch) => {
changelog.hooks.renderChangelogLine.tapPromise(
'NPM - Monorepo',
async ([commit, line]) => {
if (!isMonorepo() || !this.renderMonorepoChangelog) {
return [commit, line];
}
const lernaPackages = await this.getLernaPackages();
const lernaJson = getLernaJson();
const packages = await changedPackages({
sha: commit.hash,
packages: lernaPackages,
lernaJson,
logger: auto.logger,
version
});