Skip to content

Commit

Permalink
chore: conventional-recommended-bump 10.0.0 fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tomer Figenblat <[email protected]>
  • Loading branch information
TomerFi committed Aug 5, 2024
1 parent 2e21ef2 commit 7d63115
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
45 changes: 45 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"test": "mocha --check-leaks --fail-zero --color --ui tdd --recursive ./tests/"
},
"dependencies": {
"conventional-changelog-conventionalcommits": "^8.0.0",
"conventional-recommended-bump": "10.0.0",
"git-semver-tags": "^7.0.1",
"minimist": "^1.2.8",
Expand Down
4 changes: 2 additions & 2 deletions src/bumper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = bumper

const recBump = require(`conventional-recommended-bump`)
const semverTags = require('git-semver-tags')
const semver = require('semver')
const fs = require('node:fs')
Expand Down Expand Up @@ -70,7 +69,8 @@ async function bumper(opts) {
}

async function getRecommended (path) {
let rec = await recBump({whatBump: whatBump ,cwd: path}, createParserOpts())
const recBump = await import(`conventional-recommended-bump`)
let rec = new recBump.Bumper(path).loadPreset('conventionalcommits').bump()
return rec.releaseType
}

Expand Down

0 comments on commit 7d63115

Please sign in to comment.