@jpp-toolkit/git-hooks 0.0.11 → 0.0.13
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/package.json +4 -4
- package/scripts/install.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jpp-toolkit/git-hooks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Git hooks configuration for JS/TS projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jpp",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"execa": "9.6.1",
|
|
29
29
|
"husky": "9.1.7",
|
|
30
30
|
"lint-staged": "16.2.7",
|
|
31
|
-
"@jpp-toolkit/commitlint-config": "0.0.
|
|
32
|
-
"@jpp-toolkit/
|
|
33
|
-
"@jpp-toolkit/
|
|
31
|
+
"@jpp-toolkit/commitlint-config": "0.0.13",
|
|
32
|
+
"@jpp-toolkit/lint-staged-config": "0.0.13",
|
|
33
|
+
"@jpp-toolkit/utils": "0.0.13"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": "24",
|
package/scripts/install.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import url from 'node:url';
|
|
4
4
|
|
|
5
|
-
import { findProjectRoot } from '@jpp-toolkit/utils';
|
|
6
5
|
import husky from 'husky';
|
|
7
6
|
|
|
8
7
|
if (process.env.CI !== undefined || process.env.NODE_ENV === 'production') {
|
|
@@ -10,6 +9,8 @@ if (process.env.CI !== undefined || process.env.NODE_ENV === 'production') {
|
|
|
10
9
|
process.exit(0);
|
|
11
10
|
}
|
|
12
11
|
|
|
12
|
+
const { findProjectRoot } = await import('@jpp-toolkit/utils');
|
|
13
|
+
|
|
13
14
|
const currentDir = url.fileURLToPath(new URL('.', import.meta.url));
|
|
14
15
|
const hooksDir = path.resolve(currentDir, '../hooks');
|
|
15
16
|
const projectRoot = findProjectRoot(currentDir);
|