mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(cli): should output changelog build process
This commit is contained in:
parent
5656c16232
commit
859e732753
@ -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": {
|
||||
|
@ -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
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user