git-hooks-list 4.1.1 → 4.2.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 (3) hide show
  1. package/index.d.ts +32 -33
  2. package/package.json +1 -56
  3. package/readme.md +5 -2
package/index.d.ts CHANGED
@@ -1,44 +1,43 @@
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
1
  /**
32
2
  List of Git hooks.
33
3
 
34
4
  @example
35
- ```
5
+ ```js
36
6
  import gitHooks from 'git-hooks-list'
37
7
 
38
8
  console.log(gitHooks)
39
- //=> ['applypatch-msg', 'pre-applypatch', 'post-applypatch', 'pre-commit', ]
9
+ //-> ['applypatch-msg', 'pre-applypatch', 'post-applypatch', ... 25 more items]
40
10
  ```
41
11
  */
42
- declare const gitHooks: GitHook[]
12
+ declare const gitHooks: readonly [
13
+ 'applypatch-msg',
14
+ 'pre-applypatch',
15
+ 'post-applypatch',
16
+ 'pre-commit',
17
+ 'pre-merge-commit',
18
+ 'prepare-commit-msg',
19
+ 'commit-msg',
20
+ 'post-commit',
21
+ 'pre-rebase',
22
+ 'post-checkout',
23
+ 'post-merge',
24
+ 'pre-push',
25
+ 'pre-receive',
26
+ 'update',
27
+ 'proc-receive',
28
+ 'post-receive',
29
+ 'post-update',
30
+ 'reference-transaction',
31
+ 'push-to-checkout',
32
+ 'pre-auto-gc',
33
+ 'post-rewrite',
34
+ 'sendemail-validate',
35
+ 'fsmonitor-watchman',
36
+ 'p4-changelist',
37
+ 'p4-prepare-changelist',
38
+ 'p4-post-changelist',
39
+ 'p4-pre-submit',
40
+ 'post-index-change',
41
+ ]
43
42
 
44
43
  export default gitHooks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-hooks-list",
3
- "version": "4.1.1",
3
+ "version": "4.2.1",
4
4
  "description": "List of Git hooks",
5
5
  "keywords": [
6
6
  "git",
@@ -38,61 +38,6 @@
38
38
  "index.json",
39
39
  "index.js"
40
40
  ],
41
- "scripts": {
42
- "clean": "run-p \"clean:*\"",
43
- "clean:dist": "del-cli dist",
44
- "dist": "run-p \"dist:*\"",
45
- "dist:npm": "release-it",
46
- "fix": "run-p \"fix:*\"",
47
- "fix:eslint": "yarn lint:eslint --fix",
48
- "fix:markdown": "markdownlint-cli2 --fix",
49
- "fix:package-json": "sort-package-json \"package.json\" \"packages/*/package.json\"",
50
- "fix:prettier": "yarn lint:prettier --write",
51
- "lint": "run-p \"lint:*\"",
52
- "lint:eslint": "eslint",
53
- "lint:markdown": "markdownlint-cli2",
54
- "lint:package-json": "yarn run fix:package-json --check",
55
- "lint:prettier": "prettier . --check",
56
- "prepare": "husky",
57
- "release": "run-s lint test fix dist",
58
- "test": "ava",
59
- "test-coverage": "c8 yarn test",
60
- "update": "node scripts/update.js"
61
- },
62
- "ava": {
63
- "verbose": true
64
- },
65
- "c8": {
66
- "include": [
67
- "index.js"
68
- ],
69
- "reporter": [
70
- "text",
71
- "lcov"
72
- ]
73
- },
74
- "devDependencies": {
75
- "@fisker/eslint-config": "13.1.3",
76
- "@fisker/husky-config": "4.1.3",
77
- "@fisker/lint-staged-config": "3.3.2",
78
- "@fisker/markdownlint-cli2-config": "0.0.3",
79
- "@fisker/prettier-config": "5.1.1",
80
- "ava": "6.2.0",
81
- "c8": "10.1.3",
82
- "cheerio": "1.0.0",
83
- "del-cli": "6.0.0",
84
- "eslint": "9.22.0",
85
- "husky": "9.1.7",
86
- "lint-staged": "15.4.3",
87
- "markdownlint-cli2": "0.17.2",
88
- "npm-run-all2": "7.0.2",
89
- "outdent": "0.8.0",
90
- "prettier": "3.5.3",
91
- "release-it": "18.1.2",
92
- "sort-package-json": "3.0.0",
93
- "write-prettier-file": "3.0.3"
94
- },
95
- "packageManager": "yarn@4.6.0",
96
41
  "publishConfig": {
97
42
  "access": "public",
98
43
  "registry": "https://registry.npmjs.org/"
package/readme.md CHANGED
@@ -26,10 +26,13 @@ yarn add git-hooks-list
26
26
 
27
27
  ## Usage
28
28
 
29
+ <!-- example start -->
30
+
29
31
  ```js
30
32
  import gitHooks from 'git-hooks-list'
31
33
 
32
34
  console.log(gitHooks)
33
-
34
- // => ['applypatch-msg', 'pre-applypatch', 'post-applypatch', 'pre-commit', ...]
35
+ //-> ['applypatch-msg', 'pre-applypatch', 'post-applypatch', ... 25 more items]
35
36
  ```
37
+
38
+ <!-- example end -->