diff --git a/packages/vant-cli/src/commands/changelog.ts b/packages/vant-cli/src/commands/changelog.ts index 3f4f389f0..6b4b3612b 100644 --- a/packages/vant-cli/src/commands/changelog.ts +++ b/packages/vant-cli/src/commands/changelog.ts @@ -51,8 +51,7 @@ export function changelog() { conventionalChangelog( { - preset: 'angular', - releaseCount: 2 + preset: 'angular' }, null, null, diff --git a/packages/vant-cli/src/compiler/vant-cli-release-plugin.ts b/packages/vant-cli/src/compiler/vant-cli-release-plugin.ts index cb2c9ae4c..6992b1907 100644 --- a/packages/vant-cli/src/compiler/vant-cli-release-plugin.ts +++ b/packages/vant-cli/src/compiler/vant-cli-release-plugin.ts @@ -1,6 +1,7 @@ // @ts-ignore import releaseIt from 'release-it'; import { build } from '../commands/build'; +import { changelog } from '../commands/changelog'; class VantCliReleasePlugin extends releaseIt.Plugin { async beforeRelease() { @@ -8,6 +9,7 @@ class VantCliReleasePlugin extends releaseIt.Plugin { console.log(''); await build(); + changelog(); } }