Skip to content

Commit

Permalink
Merge pull request #38 from rwjblue/ensure-custom-changelog-is-shown
Browse files Browse the repository at this point in the history
Ensure custom changelog is displayed initialy on release-it@13.5.3+.
  • Loading branch information
rwjblue committed Apr 20, 2020
2 parents 010e988 + 143bc95 commit 3a99b3c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ module.exports = class LernaChangelogGeneratorPlugin extends Plugin {
return nextVersion;
}

getLatestVersion() {
// leveraging getLatestVersion so that we can mutate the global contexts
// `changelog` _after_ the built in plugin has ran. IMHO, this kinda sucks,
// but has the timing semantics needed to work around the changes in
// release-it@13.5.3.
//
// Hopefully a better resolution can be found over in
// https://github.com/release-it/release-it/issues/647
let { changelog } = this.getContext();
this.config.setContext({ changelog });
}

getTagNameFromVersion(version) {
let tagName = this.config.getContext('git.tagName');

Expand Down

0 comments on commit 3a99b3c

Please sign in to comment.