lefthook 1.6.19 → 1.6.22
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.
- package/bin/index.js +17 -0
- package/package.json +13 -9
package/bin/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
var spawn = require('child_process').spawn;
|
|
4
|
+
const { getExePath } = require('../get-exe');
|
|
5
|
+
|
|
6
|
+
var command_args = process.argv.slice(2);
|
|
7
|
+
|
|
8
|
+
var child = spawn(
|
|
9
|
+
getExePath(),
|
|
10
|
+
command_args,
|
|
11
|
+
{ stdio: "inherit" });
|
|
12
|
+
|
|
13
|
+
child.on('close', function (code) {
|
|
14
|
+
if (code !== 0) {
|
|
15
|
+
process.exit(1);
|
|
16
|
+
}
|
|
17
|
+
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lefthook",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.22",
|
|
4
4
|
"description": "Simple git hooks manager",
|
|
5
5
|
"repository": "https://github.com/evilmartians/lefthook",
|
|
6
|
+
"main": "bin/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"lefthook": "bin/index.js"
|
|
9
|
+
},
|
|
6
10
|
"keywords": [
|
|
7
11
|
"git",
|
|
8
12
|
"hook",
|
|
@@ -16,14 +20,14 @@
|
|
|
16
20
|
},
|
|
17
21
|
"homepage": "https://github.com/evilmartians/lefthook#readme",
|
|
18
22
|
"optionalDependencies": {
|
|
19
|
-
"lefthook-darwin-arm64": "1.6.
|
|
20
|
-
"lefthook-darwin-x64": "1.6.
|
|
21
|
-
"lefthook-linux-arm64": "1.6.
|
|
22
|
-
"lefthook-linux-x64": "1.6.
|
|
23
|
-
"lefthook-freebsd-arm64": "1.6.
|
|
24
|
-
"lefthook-freebsd-x64": "1.6.
|
|
25
|
-
"lefthook-windows-arm64": "1.6.
|
|
26
|
-
"lefthook-windows-x64": "1.6.
|
|
23
|
+
"lefthook-darwin-arm64": "1.6.22",
|
|
24
|
+
"lefthook-darwin-x64": "1.6.22",
|
|
25
|
+
"lefthook-linux-arm64": "1.6.22",
|
|
26
|
+
"lefthook-linux-x64": "1.6.22",
|
|
27
|
+
"lefthook-freebsd-arm64": "1.6.22",
|
|
28
|
+
"lefthook-freebsd-x64": "1.6.22",
|
|
29
|
+
"lefthook-windows-arm64": "1.6.22",
|
|
30
|
+
"lefthook-windows-x64": "1.6.22"
|
|
27
31
|
},
|
|
28
32
|
"scripts": {
|
|
29
33
|
"postinstall": "node postinstall.js"
|