Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

prevOpen Source→lerna-clean-changelogs-clinext

lerna-clean-changelogs-cli4.2.1

CLI application to cleanse the lerna/commitizen-generated changelogs

Downloads per monthChangelogMIT Licenselibera manifesto
  • the top
  • Installation
  • IDEA
  • PURPOSE
  • Changelog

Installation

Idea

This CLI removes the frivolous changelog file entries generated by commitizenopens in a new tab:

cleaning
cleaning

Purpose

This application performs the following cleaning steps on all encountered changelog.md’s:

  1. It removes bump-only changelog entries that conventional-changelog generates. For example:

    **Note:** Version bump only for package ...
    

    These will be deleted along with their headings.

  2. It removes diff links from headings. Change the following:

    ## [2.9.1](https://gitlab.com/codsen/codsen/tree/master/packages/ranges-apply/compare/ranges-apply@2.9.0...ranges-apply@2.9.1) (2018-12-27)
    

    into:

    ## 2.9.1 (2018-12-27)
    

    The diff links are not universal (across Sourcehut, GitLab, GitHub and BitBucket to name few) so it’s more future-proof to remove them.

  3. Remove h1 headings and turn them into h2, with the exception of the first, main heading of the changelog.

    For example, change the following:

    # [2.0.0](https://gitlab.com/codsen/codsen/tree/master/packages/ranges-apply/compare/ranges-apply@2.0.0...ranges-apply@1.9.1) (2018-12-27)
    

    into:

    ## 2.0.0 (2018-12-27)
    

    (notice how a second # character is added, beside link being removed)

Changelog

Open Changelog
↑ back to top
prev next

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab