From 767a19117c7ffd8b02d4c2d531bf59dcea19a87b Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 29 Aug 2019 20:59:44 +0800 Subject: [PATCH] build: show commit msg when verify commit (#4287) --- package.json | 2 +- packages/vant-cli/package.json | 2 +- packages/vant-cli/src/commit-lint.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3a3931b69..9a6467c08 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "@babel/preset-env": "^7.5.5", "@babel/preset-typescript": "^7.3.3", "@types/jest": "^24.0.16", - "@vant/cli": "^1.0.4", + "@vant/cli": "^1.0.5", "@vant/doc": "^2.5.5", "@vant/eslint-config": "^1.2.5", "@vant/markdown-loader": "^2.2.0", diff --git a/packages/vant-cli/package.json b/packages/vant-cli/package.json index 9efb864a8..d3790e037 100644 --- a/packages/vant-cli/package.json +++ b/packages/vant-cli/package.json @@ -1,6 +1,6 @@ { "name": "@vant/cli", - "version": "1.0.4", + "version": "1.0.5", "description": "vant cli tools", "main": "./src/index.js", "bin": { diff --git a/packages/vant-cli/src/commit-lint.js b/packages/vant-cli/src/commit-lint.js index 3c383b4f0..e49c93ecb 100644 --- a/packages/vant-cli/src/commit-lint.js +++ b/packages/vant-cli/src/commit-lint.js @@ -8,7 +8,7 @@ function commitLint() { const commitMsg = fs.readFileSync(gitParams, 'utf-8').trim(); 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.