standards-cli 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "standards-cli",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "一键初始化前端项目提交规范链路(cz-git + commitlint + husky + lint-staged)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,13 +18,15 @@ module.exports = {
18
18
  "revert",
19
19
  ],
20
20
  ],
21
+ "scope-empty": [2, "never"], // 必须填写 scope
21
22
  "subject-empty": [2, "never"],
22
23
  "subject-max-length": [2, "always", 72],
24
+ "subject-case": [0], // 允许中文,不限制大小写
23
25
  },
24
26
  prompt: {
25
27
  messages: {
26
28
  type: "选择你要提交的类型:",
27
- customScope: "输入 scope (可选,如: login, auth):",
29
+ scope: "输入 scope (必填,如: login, auth):",
28
30
  subject: "输入简短描述:",
29
31
  confirmCommit: "确认提交?",
30
32
  },
@@ -43,13 +45,13 @@ module.exports = {
43
45
  ],
44
46
  useEmoji: false,
45
47
  skipQuestions: [
46
- "scope",
47
48
  "body",
48
49
  "breaking",
49
50
  "breakingBody",
50
51
  "footer",
51
52
  "footerPrefix",
52
53
  ],
53
- defaultScope: "___CUSTOM___:",
54
+ enableMultipleScopes: false,
55
+ scopeEnumSeparator: ",",
54
56
  },
55
57
  };