@sequencemedia/hooks 1.0.429 → 1.0.431
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/.eslintrc +2 -3
- package/.husky/post-commit +15 -1
- package/package.json +1 -2
- package/src/common.mjs +1 -1
package/.eslintrc
CHANGED
package/.husky/post-commit
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
. "$(dirname "$0")/_/husky.sh"
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
get_package_changes () {
|
|
5
|
+
local CURRENT_BRANCH
|
|
6
|
+
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
7
|
+
|
|
8
|
+
git diff HEAD~1..HEAD~0 -- "origin/$CURRENT_BRANCH" package.json
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
has_package_changes () {
|
|
12
|
+
[ ! -z "$(get_package_changes)" ]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if has_package_changes;
|
|
16
|
+
then
|
|
17
|
+
npx cross-env DEBUG=@sequencemedia/hooks* node .husky/post-commit.mjs
|
|
18
|
+
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequencemedia/hooks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.431",
|
|
4
4
|
"description": "Git Hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"git",
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"debug": "^4.3.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@babel/cli": "^7.21.5",
|
|
35
34
|
"@babel/core": "^7.22.1",
|
|
36
35
|
"@babel/eslint-parser": "^7.21.8",
|
|
37
36
|
"@babel/preset-env": "^7.22.4",
|
package/src/common.mjs
CHANGED
|
@@ -103,7 +103,7 @@ export function patchPackageVersion () {
|
|
|
103
103
|
|
|
104
104
|
return (
|
|
105
105
|
new Promise((resolve, reject) => {
|
|
106
|
-
exec('npm version patch -m %s -n', OPTIONS, (e) => (!e) ? resolve() : reject(e))
|
|
106
|
+
exec('npm version patch -m "%s" -n --no-commit-hooks', OPTIONS, (e) => (!e) ? resolve() : reject(e))
|
|
107
107
|
})
|
|
108
108
|
)
|
|
109
109
|
}
|