fix(cli): should output changelog build process

This commit is contained in:
陈嘉涵 2019-12-13 17:50:17 +08:00
parent 5656c16232
commit 859e732753
2 changed files with 8 additions and 3 deletions

View File

@ -22,7 +22,7 @@
"test:watch": "vant-cli test --watch",
"release:site": "sh docs/site/release.sh",
"test:coverage": "open test/coverage/index.html",
"changelog": "vant-cli changelog ./docs/changelog.generated.md"
"changelog": "vant-cli changelog ./changelog.generated.md --tag 2.3.0"
},
"husky": {
"hooks": {

View File

@ -5,7 +5,8 @@ import { ROOT } from '../common/constant';
export function changelog(dist: string, cmd: { tag?: string }) {
const tag = cmd.tag || 'v1.0.0';
exec(`
exec(
`
basepath=${ROOT}
github_changelog_generator \
@ -19,5 +20,9 @@ export function changelog(dist: string, cmd: { tag?: string }) {
--no-unreleased \
--since-tag ${tag} \
-o ${join(ROOT, dist)}
`);
`,
{
silent: false
}
);
}