benduran / lets-version

A package that reads your conventional commits and git history and recommends (or applies) a SemVer version bump for you
MIT License
1 stars 3 forks source link

Pass --saveExact through applyRecommendedBumpsByPackage #20

Closed brucespang closed 4 months ago

brucespang commented 4 months ago

Previously --saveExact from turbo-tools was being dropped in applyRecommendedBumpsByPackage. With this change, it makes it all the way through to synchronizeBumps as desired!

Testing: rebuilt lets-version locally and then in the monorepo ran

npx turbo-tools version --yes --noCommit --noPush --releaseAs alpha --uniqify --saveExact
...

And it worked!

diff --git a/package-lock.json b/package-lock.json
index 2c7a150139..6c3a95fc72 100644
--- a/package-lock.json
+++ b/package-lock.json
...
-        "package-name": "^0.0.1-alpha.0.cfaa18afeb",
+        "package-name": "0.0.1-alpha.0.f604b52558",

Also had some trouble running the tests locally because I did not have pnpm installed, so added it to the devDependencies.