lefthook 2.1.0 → 2.1.2

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/README.md +22 -22
  2. package/package.json +11 -11
  3. package/schema.json +30 -1
package/README.md CHANGED
@@ -22,13 +22,13 @@ A Git hooks manager for Node.js, Ruby, Python and many other types of projects.
22
22
  With **Go** (>= 1.25):
23
23
 
24
24
  ```bash
25
- go install github.com/evilmartians/lefthook/v2@v2.1.0
25
+ go install github.com/evilmartians/lefthook/v2@v2.1.2
26
26
  ```
27
27
 
28
28
  * or as a go tool
29
29
 
30
30
  ```bash
31
- go get -tool github.com/evilmartians/lefthook
31
+ go get -tool github.com/evilmartians/lefthook/v2@v2.1.0
32
32
  ```
33
33
 
34
34
  With **NPM**:
@@ -258,24 +258,24 @@ Check [examples][examples]
258
258
 
259
259
 
260
260
  [documentation]: https://lefthook.dev/
261
- [configuration]: https://lefthook.dev/configuration/index.html
262
- [examples]: https://lefthook.dev/examples/lefthook-local.html
263
- [installation]: https://lefthook.dev/installation/
264
- [usage]: https://lefthook.dev/usage/commands.html
261
+ [configuration]: https://lefthook.dev/configuration/index
262
+ [examples]: https://lefthook.dev/examples/lefthook-local
263
+ [installation]: https://lefthook.dev/install/
264
+ [usage]: https://lefthook.dev/usage/
265
265
  [discussion]: https://github.com/evilmartians/lefthook/discussions
266
- [install-apt]: https://lefthook.dev/installation/deb.html
267
- [install-ruby]: https://lefthook.dev/installation/ruby.html
268
- [install-node]: https://lefthook.dev/installation/node.html
269
- [install-brew]: https://lefthook.dev/installation/homebrew.html
270
- [install-winget]: https://lefthook.dev/installation/winget.html
271
- [install-rpm]: https://lefthook.dev/installation/rpm.html
272
- [install-arch]: https://lefthook.dev/installation/arch.html
273
- [install-alpine]: https://lefthook.dev/installation/alpine.html
274
- [config-parallel]: https://lefthook.dev/configuration/parallel.html
275
- [config-files]: https://lefthook.dev/configuration/files.html
276
- [config-glob]: https://lefthook.dev/configuration/glob.html
277
- [config-run]: https://lefthook.dev/configuration/run.html
278
- [config-scripts]: https://lefthook.dev/configuration/Scripts.html
279
- [config-tags]: https://lefthook.dev/configuration/tags.html
280
- [config-output]: https://lefthook.dev/configuration/output.html
281
- [usage-local-config]: https://lefthook.dev/examples/lefthook-local.html
266
+ [install-apt]: https://lefthook.dev/installation/deb
267
+ [install-ruby]: https://lefthook.dev/installation/ruby
268
+ [install-node]: https://lefthook.dev/installation/node
269
+ [install-brew]: https://lefthook.dev/installation/homebrew
270
+ [install-winget]: https://lefthook.dev/installation/winget
271
+ [install-rpm]: https://lefthook.dev/installation/rpm
272
+ [install-arch]: https://lefthook.dev/installation/arch
273
+ [install-alpine]: https://lefthook.dev/installation/alpine
274
+ [config-parallel]: https://lefthook.dev/configuration/parallel
275
+ [config-files]: https://lefthook.dev/configuration/files
276
+ [config-glob]: https://lefthook.dev/configuration/glob
277
+ [config-run]: https://lefthook.dev/configuration/run
278
+ [config-scripts]: https://lefthook.dev/configuration/Scripts
279
+ [config-tags]: https://lefthook.dev/configuration/tags
280
+ [config-output]: https://lefthook.dev/configuration/output
281
+ [usage-local-config]: https://lefthook.dev/examples/lefthook-local
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lefthook",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Simple git hooks manager",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,16 +28,16 @@
28
28
  },
29
29
  "homepage": "https://github.com/evilmartians/lefthook#readme",
30
30
  "optionalDependencies": {
31
- "lefthook-darwin-arm64": "2.1.0",
32
- "lefthook-darwin-x64": "2.1.0",
33
- "lefthook-linux-arm64": "2.1.0",
34
- "lefthook-linux-x64": "2.1.0",
35
- "lefthook-freebsd-arm64": "2.1.0",
36
- "lefthook-freebsd-x64": "2.1.0",
37
- "lefthook-openbsd-arm64": "2.1.0",
38
- "lefthook-openbsd-x64": "2.1.0",
39
- "lefthook-windows-arm64": "2.1.0",
40
- "lefthook-windows-x64": "2.1.0"
31
+ "lefthook-darwin-arm64": "2.1.2",
32
+ "lefthook-darwin-x64": "2.1.2",
33
+ "lefthook-linux-arm64": "2.1.2",
34
+ "lefthook-linux-x64": "2.1.2",
35
+ "lefthook-freebsd-arm64": "2.1.2",
36
+ "lefthook-freebsd-x64": "2.1.2",
37
+ "lefthook-openbsd-arm64": "2.1.2",
38
+ "lefthook-openbsd-x64": "2.1.2",
39
+ "lefthook-windows-arm64": "2.1.2",
40
+ "lefthook-windows-x64": "2.1.2"
41
41
  },
42
42
  "scripts": {
43
43
  "postinstall": "node postinstall.js"
package/schema.json CHANGED
@@ -205,6 +205,12 @@
205
205
  }
206
206
  ]
207
207
  },
208
+ "setup": {
209
+ "items": {
210
+ "$ref": "#/$defs/SetupInstruction"
211
+ },
212
+ "type": "array"
213
+ },
208
214
  "jobs": {
209
215
  "items": {
210
216
  "$ref": "#/$defs/Job"
@@ -472,9 +478,26 @@
472
478
  },
473
479
  "additionalProperties": false,
474
480
  "type": "object"
481
+ },
482
+ "SetupInstruction": {
483
+ "oneOf": [
484
+ {
485
+ "required": [
486
+ "run"
487
+ ],
488
+ "title": "Run a command"
489
+ }
490
+ ],
491
+ "properties": {
492
+ "run": {
493
+ "type": "string"
494
+ }
495
+ },
496
+ "additionalProperties": false,
497
+ "type": "object"
475
498
  }
476
499
  },
477
- "$comment": "Last updated on 2026.02.02.",
500
+ "$comment": "Last updated on 2026.02.28.",
478
501
  "properties": {
479
502
  "min_version": {
480
503
  "type": "string",
@@ -719,6 +742,12 @@
719
742
  }
720
743
  ]
721
744
  },
745
+ "setup": {
746
+ "items": {
747
+ "$ref": "#/$defs/SetupInstruction"
748
+ },
749
+ "type": "array"
750
+ },
722
751
  "jobs": {
723
752
  "items": {
724
753
  "$ref": "#/$defs/Job"