git-hooks-list 4.0.0 → 4.1.1

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/index.d.ts +44 -0
  2. package/package.json +9 -5
package/index.d.ts ADDED
@@ -0,0 +1,44 @@
1
+ type GitHook =
2
+ | 'applypatch-msg'
3
+ | 'pre-applypatch'
4
+ | 'post-applypatch'
5
+ | 'pre-commit'
6
+ | 'pre-merge-commit'
7
+ | 'prepare-commit-msg'
8
+ | 'commit-msg'
9
+ | 'post-commit'
10
+ | 'pre-rebase'
11
+ | 'post-checkout'
12
+ | 'post-merge'
13
+ | 'pre-push'
14
+ | 'pre-receive'
15
+ | 'update'
16
+ | 'proc-receive'
17
+ | 'post-receive'
18
+ | 'post-update'
19
+ | 'reference-transaction'
20
+ | 'push-to-checkout'
21
+ | 'pre-auto-gc'
22
+ | 'post-rewrite'
23
+ | 'sendemail-validate'
24
+ | 'fsmonitor-watchman'
25
+ | 'p4-changelist'
26
+ | 'p4-prepare-changelist'
27
+ | 'p4-post-changelist'
28
+ | 'p4-pre-submit'
29
+ | 'post-index-change'
30
+
31
+ /**
32
+ List of Git hooks.
33
+
34
+ @example
35
+ ```
36
+ import gitHooks from 'git-hooks-list'
37
+
38
+ console.log(gitHooks)
39
+ //=> ['applypatch-msg', 'pre-applypatch', 'post-applypatch', 'pre-commit', …]
40
+ ```
41
+ */
42
+ declare const gitHooks: GitHook[]
43
+
44
+ export default gitHooks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-hooks-list",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
4
4
  "description": "List of Git hooks",
5
5
  "keywords": [
6
6
  "git",
@@ -23,6 +23,7 @@
23
23
  "type": "module",
24
24
  "exports": {
25
25
  ".": {
26
+ "types": "./index.d.ts",
26
27
  "require": "./index.json",
27
28
  "default": "./index.js"
28
29
  },
@@ -33,6 +34,7 @@
33
34
  "unpkg": "index.json",
34
35
  "browser": "index.json",
35
36
  "files": [
37
+ "index.d.ts",
36
38
  "index.json",
37
39
  "index.js"
38
40
  ],
@@ -40,7 +42,7 @@
40
42
  "clean": "run-p \"clean:*\"",
41
43
  "clean:dist": "del-cli dist",
42
44
  "dist": "run-p \"dist:*\"",
43
- "dist:npm": "np --yolo --no-yarn",
45
+ "dist:npm": "release-it",
44
46
  "fix": "run-p \"fix:*\"",
45
47
  "fix:eslint": "yarn lint:eslint --fix",
46
48
  "fix:markdown": "markdownlint-cli2 --fix",
@@ -79,13 +81,15 @@
79
81
  "c8": "10.1.3",
80
82
  "cheerio": "1.0.0",
81
83
  "del-cli": "6.0.0",
82
- "eslint": "9.21.0",
84
+ "eslint": "9.22.0",
83
85
  "husky": "9.1.7",
84
86
  "lint-staged": "15.4.3",
85
87
  "markdownlint-cli2": "0.17.2",
86
88
  "npm-run-all2": "7.0.2",
87
- "prettier": "3.5.2",
88
- "sort-package-json": "2.15.0",
89
+ "outdent": "0.8.0",
90
+ "prettier": "3.5.3",
91
+ "release-it": "18.1.2",
92
+ "sort-package-json": "3.0.0",
89
93
  "write-prettier-file": "3.0.3"
90
94
  },
91
95
  "packageManager": "yarn@4.6.0",