@sequencemedia/hooks 1.0.428 → 1.0.430

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 CHANGED
@@ -2,12 +2,11 @@
2
2
  "root": true,
3
3
  "extends": "standard",
4
4
  "env": {
5
- "node": true,
6
- "es2020": true
5
+ "node": true
7
6
  },
8
7
  "parser": "@babel/eslint-parser",
9
8
  "parserOptions": {
10
- "ecmaVersion": 2020,
9
+ "ecmaVersion": "latest",
11
10
  "sourceType": "module"
12
11
  }
13
12
  }
@@ -1,4 +1,18 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
3
 
4
- npx cross-env DEBUG=@sequencemedia/hooks* node .husky/post-commit.mjs
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.428",
3
+ "version": "1.0.430",
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",