@ministryofjustice/hmpps-precommit-hooks 2.0.0-beta.3 → 2.0.0-beta.4

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.
Files changed (2) hide show
  1. package/bin/prepare.sh +4 -6
  2. package/package.json +1 -4
package/bin/prepare.sh CHANGED
@@ -24,16 +24,14 @@ fi
24
24
 
25
25
 
26
26
  # Remove husky if installed
27
- if [ -f "node_modules/.bin/husky" ]; then
27
+ if [ -f ".husky/pre-commit" ]; then
28
28
  startStage "Removing husky"
29
29
  npm uninstall husky
30
30
  endStage " ✅ "
31
31
 
32
- if [ -f ".husky/pre-commit" ]; then
33
- startStage "Deleting existing husky pre-commit hooks"
34
- rm -Rf .husky
35
- endStage " ✅ "
36
- fi
32
+ startStage "Deleting existing husky pre-commit hooks"
33
+ rm -Rf .husky
34
+ endStage " ✅ "
37
35
  fi
38
36
 
39
37
  # Check brew exists
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-precommit-hooks",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "Precommit hooks for HMPPS typescript projects",
5
5
  "keywords": [
6
6
  "precommit"
@@ -32,8 +32,5 @@
32
32
  ],
33
33
  "engines": {
34
34
  "node": "20 || 22 || 24"
35
- },
36
- "dependencies": {
37
- "husky": "^9.1.7"
38
35
  }
39
36
  }