build: show commit msg when verify commit (#4287)

This commit is contained in:
neverland 2019-08-29 20:59:44 +08:00 committed by GitHub
parent 94d3f2d647
commit 767a19117c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@
"@babel/preset-env": "^7.5.5", "@babel/preset-env": "^7.5.5",
"@babel/preset-typescript": "^7.3.3", "@babel/preset-typescript": "^7.3.3",
"@types/jest": "^24.0.16", "@types/jest": "^24.0.16",
"@vant/cli": "^1.0.4", "@vant/cli": "^1.0.5",
"@vant/doc": "^2.5.5", "@vant/doc": "^2.5.5",
"@vant/eslint-config": "^1.2.5", "@vant/eslint-config": "^1.2.5",
"@vant/markdown-loader": "^2.2.0", "@vant/markdown-loader": "^2.2.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@vant/cli", "name": "@vant/cli",
"version": "1.0.4", "version": "1.0.5",
"description": "vant cli tools", "description": "vant cli tools",
"main": "./src/index.js", "main": "./src/index.js",
"bin": { "bin": {

View File

@ -8,7 +8,7 @@ function commitLint() {
const commitMsg = fs.readFileSync(gitParams, 'utf-8').trim(); const commitMsg = fs.readFileSync(gitParams, 'utf-8').trim();
if (!commitRE.test(commitMsg)) { if (!commitRE.test(commitMsg)) {
signale.error(`Error: invalid commit message format. signale.error(`Error: invalid commit message: "${commitMsg}".
Proper commit message format is required for automated changelog generation. Proper commit message format is required for automated changelog generation.