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

@@ -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
}
);
}