git-hooks-list 2.2.0 → 3.1.0

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.js +6 -0
  2. package/package.json +34 -34
  3. package/readme.md +5 -9
package/index.js ADDED
@@ -0,0 +1,6 @@
1
+ import fs from 'node:fs'
2
+
3
+ const dataFile = new URL('./index.json', import.meta.url)
4
+ const gitHooks = JSON.parse(fs.readFileSync(dataFile))
5
+
6
+ export default gitHooks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-hooks-list",
3
- "version": "2.2.0",
3
+ "version": "3.1.0",
4
4
  "description": "List of Git hooks",
5
5
  "keywords": [
6
6
  "git",
@@ -20,37 +20,39 @@
20
20
  "url": "https://www.fiskercheung.com/"
21
21
  },
22
22
  "sideEffects": false,
23
+ "type": "module",
24
+ "exports": {
25
+ "import": "./index.js",
26
+ "require": "./index.json"
27
+ },
23
28
  "main": "index.json",
24
29
  "jsdelivr": "index.json",
25
30
  "unpkg": "index.json",
26
31
  "browser": "index.json",
27
32
  "files": [
28
- "index.json"
33
+ "index.json",
34
+ "index.js"
29
35
  ],
30
36
  "scripts": {
31
- "clean": "run-p clean:*",
37
+ "clean": "run-p \"clean:*\"",
32
38
  "clean:dist": "del-cli dist",
33
- "dist": "run-p dist:*",
39
+ "dist": "run-p \"dist:*\"",
34
40
  "dist:npm": "np --yolo --no-yarn",
35
- "format": "run-p format:*",
41
+ "format": "run-p \"format:*\"",
36
42
  "format:eslint": "yarn lint:eslint --fix",
37
- "format:markdown": "yarn lint:markdown --fix",
43
+ "format:markdown": "markdownlint-cli2-fix",
38
44
  "format:package-json": "sort-package-json \"package.json\" \"packages/*/package.json\"",
39
45
  "format:prettier": "yarn lint:prettier --write",
40
- "lint": "run-p lint:*",
41
- "lint:eslint": "eslint \"**/*.{js,mjs,vue}\"",
42
- "lint:markdown": "markdownlint \"**/*.md\" --ignore \"**/node_modules/**\"",
46
+ "lint": "run-p \"lint:*\"",
47
+ "lint:eslint": "eslint \"**/*.{js,jsx,mjs,cjs,vue}\"",
48
+ "lint:markdown": "markdownlint-cli2",
43
49
  "lint:package-json": "yarn run format:package-json --check",
44
- "lint:prettier": "prettier \"**/*.{css,html,js,json,less,md,scss,ts,vue,yaml,yml}\" --check",
50
+ "lint:prettier": "prettier . --check",
51
+ "prepare": "husky install",
45
52
  "release": "run-s lint test format dist",
46
53
  "test": "ava",
47
54
  "test-coverage": "nyc yarn test",
48
- "update": "node scripts/update.mjs"
49
- },
50
- "config": {
51
- "commitizen": {
52
- "path": "./node_modules/cz-conventional-changelog"
53
- }
55
+ "update": "node scripts/update.js"
54
56
  },
55
57
  "ava": {
56
58
  "verbose": true
@@ -62,27 +64,25 @@
62
64
  ]
63
65
  },
64
66
  "devDependencies": {
65
- "@commitlint/cli": "11.0.0",
66
- "@fisker/commitlint-config": "1.3.1",
67
- "@fisker/eslint-config": "3.1.2",
68
- "@fisker/husky-config": "3.1.1",
69
- "@fisker/lint-staged-config": "2.2.0",
70
- "@fisker/prettier-config": "3.1.2",
71
- "ava": "3.13.0",
72
- "cheerio": "1.0.0-rc.3",
73
- "cz-conventional-changelog": "3.3.0",
74
- "del-cli": "3.0.1",
75
- "eslint": "7.11.0",
76
- "got": "11.8.0",
77
- "husky": "4.3.0",
78
- "lint-staged": "10.4.2",
79
- "markdownlint-cli": "0.24.0",
67
+ "@fisker/eslint-config": "10.2.5",
68
+ "@fisker/husky-config": "4.1.3",
69
+ "@fisker/lint-staged-config": "3.1.6",
70
+ "@fisker/markdownlint-cli2-config": "0.0.3",
71
+ "@fisker/prettier-config": "5.0.7",
72
+ "ava": "5.2.0",
73
+ "cheerio": "1.0.0-rc.12",
74
+ "del-cli": "5.0.0",
75
+ "eslint": "8.34.0",
76
+ "husky": "8.0.3",
77
+ "lint-staged": "13.1.2",
78
+ "markdownlint-cli2": "0.6.0",
80
79
  "npm-run-all": "4.1.5",
81
80
  "nyc": "15.1.0",
82
- "prettier": "2.1.2",
83
- "sort-package-json": "1.46.0",
84
- "write-prettier-file": "1.2.6"
81
+ "prettier": "2.8.4",
82
+ "sort-package-json": "2.4.1",
83
+ "write-prettier-file": "2.2.0"
85
84
  },
85
+ "packageManager": "yarn@3.4.1",
86
86
  "publishConfig": {
87
87
  "access": "public",
88
88
  "registry": "https://registry.npmjs.org/"
package/readme.md CHANGED
@@ -5,12 +5,12 @@
5
5
  [![Npm Version][package_version_badge]][package_link]
6
6
  [![MIT License][license_badge]][license_link]
7
7
 
8
- [github_actions_badge]: https://img.shields.io/github/workflow/status/fisker/git-hooks-list/CI/master?style=flat-square
9
- [github_actions_link]: https://github.com/fisker/git-hooks-list/actions?query=branch%3Amaster
10
- [coveralls_badge]: https://img.shields.io/coveralls/github/fisker/git-hooks-list/master?style=flat-square
11
- [coveralls_link]: https://coveralls.io/github/fisker/git-hooks-list?branch=master
8
+ [github_actions_badge]: https://img.shields.io/github/actions/workflow/status/fisker/git-hooks-list/continuous-integration.yml?style=flat-square
9
+ [github_actions_link]: https://github.com/fisker/git-hooks-list/actions?query=branch%3Amain
10
+ [coveralls_badge]: https://img.shields.io/coveralls/github/fisker/git-hooks-list/main?style=flat-square
11
+ [coveralls_link]: https://coveralls.io/github/fisker/git-hooks-list?branch=main
12
12
  [license_badge]: https://img.shields.io/npm/l/git-hooks-list.svg?style=flat-square
13
- [license_link]: https://github.com/fisker/git-hooks-list/blob/master/license
13
+ [license_link]: https://github.com/fisker/git-hooks-list/blob/main/license
14
14
  [package_version_badge]: https://img.shields.io/npm/v/git-hooks-list.svg?style=flat-square
15
15
  [package_link]: https://www.npmjs.com/package/git-hooks-list
16
16
 
@@ -22,10 +22,6 @@ Data from [Git - githooks Documentation](https://git-scm.com/docs/githooks)
22
22
 
23
23
  ```bash
24
24
  yarn add git-hooks-list
25
-
26
- # OR with npm
27
-
28
- npm install --save git-hooks-list
29
25
  ```
30
26
 
31
27
  ## Usage