Skip to content

Commit

Permalink
fix: update manifest version before npm plugin prepare step
Browse files Browse the repository at this point in the history
relates #58
  • Loading branch information
antongolub committed Mar 1, 2022
1 parent 136ec1c commit a1ae4c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/updateDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,10 @@ const updateManifestDeps = (pkg) => {
const { manifest, path } = pkg;
const { indent, trailingWhitespace } = recognizeFormat(manifest.__contents__);

// We need to bump pkg.version for correct yarn.lock update
// https://github.com/qiwi/multi-semantic-release/issues/58
manifest.version = pkg._nextRelease.version || manifest.version;

// Loop through localDeps to verify release consistency.
pkg.localDeps.forEach((d) => {
// Get version of dependency.
Expand Down

0 comments on commit a1ae4c3

Please sign in to comment.