@fatsolutions/ganchos 1.0.4 → 1.0.5

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.
@@ -29,4 +29,15 @@ if [ -n "$JS_FILES" ]; then
29
29
  exit 1
30
30
  }
31
31
  fi
32
+
33
+ # Check if files were modified by auto-fix
34
+ MODIFIED=$(echo "$JS_FILES" | xargs git diff --name-only)
35
+ if [ -n "$MODIFIED" ]; then
36
+ echo ""
37
+ echo "The following files were auto-fixed:"
38
+ echo "$MODIFIED" | sed 's/^/ /'
39
+ echo ""
40
+ echo "Please review the changes and commit again."
41
+ exit 1
42
+ fi
32
43
  fi
@@ -47,4 +47,15 @@ if [ -n "$TS_FILES" ]; then
47
47
  exit 1
48
48
  }
49
49
  fi
50
+
51
+ # Check if files were modified by auto-fix
52
+ MODIFIED=$(echo "$TS_FILES" | xargs git diff --name-only)
53
+ if [ -n "$MODIFIED" ]; then
54
+ echo ""
55
+ echo "The following files were auto-fixed:"
56
+ echo "$MODIFIED" | sed 's/^/ /'
57
+ echo ""
58
+ echo "Please review the changes and commit again."
59
+ exit 1
60
+ fi
50
61
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fatsolutions/ganchos",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Git Hook Manager for Polyglot Monorepos, developed in house by FatSolutions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",