@cenk1cenk2/cz-cc 3.0.1 → 3.0.3

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.
Files changed (2) hide show
  1. package/README.md +16 -9
  2. package/package.json +7 -22
package/README.md CHANGED
@@ -42,12 +42,19 @@ commitizen init @cenk1cenk2/cz-cc --yarn --dev
42
42
  commitizen init @cenk1cenk2/cz-cc --dev
43
43
  ```
44
44
 
45
- - Add git-hooks.
46
-
47
- ```json
48
- {
49
- "simple-git-hooks": {
50
- "prepare-commit-msg": "[ -t 1 ] && exec < /dev/tty && git cz --hook || true"
45
+ - Add git-hooks with [hk](https://hk.jdx.dev).
46
+
47
+ ```pkl
48
+ amends "package://github.com/jdx/hk/releases/download/v2.0.1/hk@2.0.1#/Config.pkl"
49
+
50
+ hooks {
51
+ ["prepare-commit-msg"] {
52
+ steps {
53
+ ["commitizen"] {
54
+ fix = "git cz --hook"
55
+ interactive = true
56
+ }
57
+ }
51
58
  }
52
59
  }
53
60
  ```
@@ -126,9 +133,9 @@ To keep the previous behaviour, pin the preset back:
126
133
 
127
134
  ```json5
128
135
  {
129
- "config": {
130
- "commitizen": {
131
- "preset": "angular"
136
+ config: {
137
+ commitizen: {
138
+ preset: 'angular'
132
139
  }
133
140
  }
134
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenk1cenk2/cz-cc",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Commitizen adapter following the conventional-changelog format.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,37 +13,22 @@
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },
16
- "simple-git-hooks": {
17
- "pre-commit": "[ -n \"$SKIP_GIT_HOOKS\" ] && true || pnpm exec lint-staged",
18
- "prepare-commit-msg": "[ -t 1 ] && exec < /dev/tty && git cz --hook || true"
19
- },
20
- "lint-staged": {
21
- "*.{ts,js,tsx,jsx}": [
22
- "prettier --write",
23
- "eslint --fix"
24
- ],
25
- "*.{json,md}": [
26
- "prettier --write"
27
- ]
28
- },
29
16
  "engines": {
30
17
  "node": ">= 24"
31
18
  },
32
19
  "dependencies": {
33
- "@inquirer/prompts": "^8.7.2",
20
+ "@inquirer/prompts": "^8.7.3",
34
21
  "@listr2/prompt-adapter-inquirer": "^4.2.7",
35
22
  "commitizen": "^4.3.2",
36
23
  "conventional-commit-types": "^3.0.0",
37
24
  "find-git-root": "^1.1.0",
38
- "listr2": "^11.1.0"
25
+ "listr2": "^11.1.1"
39
26
  },
40
27
  "devDependencies": {
41
- "@cenk1cenk2/eslint-config": "^3.3.5",
42
- "@types/node": "^24.13.4",
43
- "eslint": "^10.10.0",
44
- "lint-staged": "^17.5.1",
45
- "prettier": "^3.9.6",
46
- "simple-git-hooks": "^2.14.0",
28
+ "@cenk1cenk2/eslint-config": "^3.3.7",
29
+ "@types/node": "^24.19.1",
30
+ "eslint": "^10.12.0",
31
+ "prettier": "^3.9.9",
47
32
  "tsdown": "^0.23.0",
48
33
  "typescript": "^6.0.3"
49
34
  },