mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
build: show commit msg when verify commit (#4287)
This commit is contained in:
parent
94d3f2d647
commit
767a19117c
@ -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",
|
||||||
|
@ -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": {
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user