From a1ae4c3785498a3b22afcac278e431aaf99a1232 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Tue, 1 Mar 2022 23:18:39 +0300 Subject: [PATCH] fix: update manifest version before npm plugin prepare step relates #58 --- lib/updateDeps.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/updateDeps.js b/lib/updateDeps.js index e99e9d4..922fc54 100644 --- a/lib/updateDeps.js +++ b/lib/updateDeps.js @@ -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.