Skip to content

Commit 0bc9e62

Browse files
committed
fix(core): load preset with local import function
1 parent b906151 commit 0bc9e62

File tree

3 files changed

+172
-109
lines changed

3 files changed

+172
-109
lines changed

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@
6161
"dependencies": {
6262
"@conventional-changelog/git-client": "^2.5.1",
6363
"@simple-libs/child-process-utils": "^1.0.0",
64-
"@simple-libs/hosted-git-info": "^1.0.0",
64+
"@simple-libs/hosted-git-info": "^1.0.1",
6565
"@simple-libs/stream-utils": "^1.0.0",
66-
"conventional-changelog": "^7.0.2",
66+
"conventional-changelog": "^7.1.0",
6767
"conventional-changelog-conventionalcommits": "^9.0.0",
6868
"conventional-changelog-preset-loader": "^5.0.0",
69-
"conventional-recommended-bump": "^11.1.0",
69+
"conventional-recommended-bump": "^11.2.0",
7070
"semver": "^7.5.2"
7171
},
7272
"devDependencies": {

packages/core/src/project/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export abstract class Project {
217217
releaseType = as
218218
} else {
219219
const bump = await new Bumper(gitClient)
220-
.loadPreset(preset)
220+
.loadPreset(preset, _ => import(_))
221221
.commits({
222222
path: projectPath
223223
})
@@ -286,7 +286,7 @@ export abstract class Project {
286286
}
287287

288288
const notes = new ConventionalChangelog(gitClient)
289-
.loadPreset(preset)
289+
.loadPreset(preset, _ => import(_))
290290
.commits({
291291
path: projectPath
292292
})

0 commit comments

Comments
 (0)