UNPKG

@speedy-js/mono

Version:

Monorepo development & continuous integration tooling.

21 lines 668 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChangelogProcessor4Beautify = void 0; /** * Remove top-level useless header * * @see https://github.com/conventional-changelog/conventional-changelog/issues/376 * @param cwd * @param input * @returns */ const ChangelogProcessor4Beautify = (cwd, input) => { input = input.trim(); const changelogLines = input.split('\n'); if (/# \[((0|1)\.0\.0)?\]/.test(changelogLines[0])) { input = changelogLines.slice(1).join('\n').trim(); } return input; }; exports.ChangelogProcessor4Beautify = ChangelogProcessor4Beautify; //# sourceMappingURL=beautify.js.map